attachContextMenuClickEvent
function attachContextMenuClickEvent(id: string, action: ()): void
Description
Defines the method to add an event listener, a function that will be called whenever the specified event is clicked in the context menu.
Parameters
- id
string
The event name.
- action
()
The event listener.
Returns
void