Add items dynamically in tool palette from UI #1436
Replies: 1 comment
-
this is a very interesting use case. For your usecase this would be a bit different. Instead of directly dispatching a trigger action you would need to dispatch an action to show you custom UI. Once the user has added the desired properties and is ready to create the node a So a high-level roadmap could look like this
|
Beta Was this translation helpful? Give feedback.
-
General idea is to make source model of editor user driven. Instead of creating components from a hardcoded list in the tool palette, user can create their own components and use in the editor.
I have overriden ToolPaletteItemProvider on my end:
and It looks something like this:
I want to add a new item in palette when Add Node is clicked. Any pointers to this would be helpful. Add Node will open some kind of UI where user can add name of the new node and its properties.
My current configurations:
Beta Was this translation helpful? Give feedback.
All reactions