I want to create a node with a very similar functionality as the switch node (as in user can dynamically add rules)
Though I can't find any resources how the switch node actually accomplishes its dynamic properties.
Currently I generate a few text inputs in a form-row whenever the user presses a button.
That works fine but when I click done and open the node properties again, everything is gone.
How do I make that persistent and also don't loose whatever the user typed into my generated inputs?
I looked at the switch node source but can't really see what it does differently. Its quite a huge node which doesn't make it easy to read to begin with.
It doesn't seem to populate the property UI from context as far as I can see so I thought node-red might handle the persistence for me if the UI is setup in a specific way that I'm missing?