Skip to content

Palette Item Name #1283

Answered by tortmayr
JValGLZ asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @JValGLZ,
as @rsoika already mentioned for your usecase you don't need to deal with click events on the client side.
The tool palette is populated from the server-side using PaletteItems. Each palette item is associated with a TriggerElementCreationAction which will be dispatched when clicking the corresponding button. You can add arbitrary custom arguments
to this trigger action using the args property. This custom arguments can then be accessed in the corresponding CreateNodeOperation.

Assuming you are using the default DefaultToolPaletteItemProvider you could simply bind a customized version like this:

public class MyToolPaletteItemProvider extends DefaultToolPaletteItemProvider {

   

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by JValGLZ
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants