I want to rename my context menu name based on some condition.
I have write ‘ObjectContextClicked’ event and i want to update context menu’s button name overhere.
e.g. I have context menu ‘Add Node’. But based on some condition this menu name would be ‘Edit Node’.
Please suggest me how to achieve this.
Are you implementing the context menu using GoJS objects or in HTML?
For the former case, it is commonplace to use a data Binding to control the appearance of each context menu button.
For the latter case, you can do what you want in HTML.
I am implementing in GoJS.
Is there any way to rename text of context menu button?
Yes, it is easiest to use a Binding on the TextBlock.text property.