ContextMenuProvider
The ContextMenuProvider
interface defines a contract for objects supplying a ContextMenu
enabling widgets or other components to provide context menus for registration with ContextMenuManager
.
Key Methods
getContextMenu(): Returns the associated
ContextMenu
.
Usage
Implement in widgets or classes that need to provide context menus, then register with ContextMenuManager.registerProvider
.
Returning null
from getContextMenu
may cause rendering or input issues.
Last updated
Was this helpful?