I tried using nested editableList and not really satisfied with resulting UX.
I want to try using a separate editor dialog for nested list. I plan on rendering a button per item in node edit dialog per list item. When clicked, editor dialog gets replaced with a custom editor dialog for that particular item.
Could you, please, advise whether using RED.editor.* APIs is safe or if there is any alternative implementation path here?
Could you, please, advise whether using RED.editor.* APIs is safe or if there is any alternative implementation path here?
I'm not sure what the answer here is, but IF the undocumented editor API's are not suitable for custom node use, you can still achieve customisation on the UX, by using JQUI Dialog.
I want to try using a separate editor dialog for nested list
Use the editableList, and include a button, for each item.
On its click - use the JQUI Dialog methods.
The "rule" from the core devs has always been that if an API isn't documented, it shouldn't be used since it could easily change or go away.
Having said that, I do have RED.editor.createEditor and RED.editor.editText in uibuilder for the file editor. However, that code really should be looked at as I'm not convinced it is current best practice.
registerTypeEditor only really makes sense if it is an editor you want to reuse in multiple places.
You can use the APIs available to open a second edit tray (as the internals calls them) with whatever content you want. I don't have a ready made example for you, but it's basically a slightly lower level API than the registerTypeEditor one.
I'm away from my laptop this week for some much needed downtime. If you get stuck ping me and I can try to point to an useful places in the code to look, but a more complete response will have to wait until next week.