Is it OK to use RED.editor.registerTypeEditor

chudesno
Tue, 04 Apr 2023 09:27:11 +0000
Feature Requests

Hi!

Documentation does not mention RED.editor.* APIs of the client. I wonder if it is fine to use them or if they are not a part of public APIs.

I am implementing a custom node managing a somewhat complex data structure: a list of items where each item have another list as its field, i.e:

const list = [
  {
    name: 'foo'
    values: [
      { value: 1, unit: 'm' },
      { value: 2, unit: 'f' }
  ]}
]

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?

Thanks in advance!

6 posts - 5 participants