Edit variable context menu items?

42 views
Skip to first unread message

HJH

unread,
Jun 26, 2025, 5:21:32 PMJun 26
to Blockly
Hello,

I've been working to replace all context menu items to add icons and customize action confirmation prompts using Context Menu Registry:

Screenshot 2025-06-26 162330.png

I've found the menu item IDs thanks to this file:

However the variable context menu items are not present in the file. (Not sure if they use the context menu registry as well?)

Screenshot 2025-06-26 162651.png
If so, the menu item IDs would be greatly appreciated. Otherwise, any ideas how I might go about adding icons and customizing action prompts?


Ronald Bourret (xWF)

unread,
Jun 26, 2025, 8:32:32 PMJun 26
to blo...@googlegroups.com
Hi,

The menu you are showing for variables isn't a context menu. It's a dropdown field generated by code in the FieldVariable class.

Ronald Bourret
Technical Writer (Provided by Synergis)


--
You received this message because you are subscribed to the Google Groups "Blockly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blockly+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/blockly/4d8b3991-6425-4ccf-ad64-b7a188d12ec6n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages