Creates an instance of the context menu entry.
The data for the context menu entry.
The raw data describing a single context-menu entry, before it is normalized into a ContextMenuEntry or compiled for Foundry's ContextMenu base class.
Optionalcallback?: ContextMenuCallbackHandler invoked when the entry is clicked; takes precedence over functionName.
Predicate (string SafeExpression or function) gating visibility. See ContextMenuCondition.
OptionalfunctionName?: stringName of the logic method to invoke when no explicit callback is given.
Sort group the entry belongs to.
Optionalicon?: HTMLStringPre-built HTML icon markup; mutually optional with iconFAClass.
OptionaliconFAClass?: stringFont-Awesome CSS class used to build an icon when icon is absent.
Unique identifier for the entry.
Display label for the entry.
OptionalcallbackThe function to call when the menu item is clicked.
Safe-expression source determining whether this entry appears in the menu. See ContextMenuCondition.
OptionalfunctionThe function name to call when the entry is clicked.
Context menu group.
OptionaliconHTML icon element for the menu item.
The context menu entry identifier.
The context menu entry label.
Represents an entry in the context menu.