nealatcaplin

Results 6 comments of nealatcaplin

Have you tried using: Actions.addNode(newNodeJson, toNodeId, location, index)?

You can use the config attribute on the node for this, config is saved when the model serialized to json. Alternatively you could create the node with an explicit id,...

Why does using the config attribute not fit your use case? ie let args = { type:"tab", component:"MyComponent", name:tabName, config:{your arguments object goes here}};

So if you saved your layout to localstorage/server and then reloaded it later into your gui, where would the arguments for the MyComponent come from? I'm just trying to understand...

OK, I see. Please go ahead and add your pull request for optionally setting the extra property

There is an action 'renameTab' that will allow you to change the name, so if you get the node, by its id (model.getNodeById()) or have it saved in your component...