Menu JSON including name, type, optional values array/function, and choice-specific configs.
ProtectedsortSorts option values for display: global items last, then by index, then by type (actions before menus), then alphabetically.
ProtectedapplyApplies cascading style resolution: option → menu → Utility defaults. Global items do not inherit menu styles.
ProtectedresolveResolves runtime values to a concrete map.
Returns the current option values.
When true, returns a MenuChoiceValuesMap keyed by option name.
When false (default), returns a flat MenuFieldOption[].
Returns the current option values.
Optionalmap: falseWhen true, returns a MenuChoiceValuesMap keyed by option name.
When false (default), returns a flat MenuFieldOption[].
Returns all option values as a map keyed by option name.
Returns all option values as a flat array.
Returns the option list, optionally sorted for display.
When true, applies the display-order sorting algorithm.
Returns the option matching the given name, or undefined.
Option value/name to look up.
Replaces or inserts a named option.
Option key.
Replacement MenuFieldOption.
Adds an option from a Menu, Action, MenuFieldOption, or raw JSON value. Styles are resolved and applied automatically.
The option to add.
Adds an option from a Menu, Action, MenuFieldOption, or raw JSON value. Styles are resolved and applied automatically.
The option to add.
Adds an option from a Menu, Action, MenuFieldOption, or raw JSON value. Styles are resolved and applied automatically.
The option to add.
Adds an option from a Menu, Action, MenuFieldOption, or raw JSON value. Styles are resolved and applied automatically.
The option to add.
Adds an option from a Menu, Action, MenuFieldOption, or raw JSON value. Styles are resolved and applied automatically.
The option to add.
Returns true when at least one option is registered.
Returns the currently selected values.
Replaces the selected values list.
New array of selected option names.
Adds a value to the selected values list if not already present.
Option name to select.
Removes a value from the selected values list.
Option name to deselect.
Returns true when the given value is in the selected list.
Option name to check.
Returns the configs object for this choice menu.
Sets the configs from an instance or a plain JSON object.
MenuChoiceConfigs instance or compatible JSON.
Serialises this choice menu to a plain JSON-compatible object.
Renders and runs the interactive choice prompt.
Optionallanguage: stringOptional language override for label translation.
Returns the menu's unique name.
Returns the menu type: "choice", "input", "field", or "editor".
Returns the plugin namespace this menu belongs to, or undefined for the default plugin.
Sets the plugin namespace for this menu.
Plugin name string.
Returns the display order index, or undefined if not set.
Sets the display order index.
Numeric sort position.
Returns all registered parent names as a flat array.
Returns the parent entry matching the given name, or undefined.
Parent name to look up.
Registers a parent menu name.
Parent name to add.
Returns true when this menu is accessible from every context.
Returns true when this menu is the anchor point of a wizard/flow.
Global actions that target this menu will be hidden in this menu
and in all its descendants, resolved through the regular parents chain.
Returns the styles container for this menu.
Sets the styles for this menu from an instance or a plain JSON object.
MenuStyles instance or compatible JSON.
Sets the styles for this menu from an instance or a plain JSON object.
MenuStyles instance or compatible JSON.
Returns the labels container for this menu.
Sets the labels for this menu from an instance or a plain JSON object.
MenuLabels instance or compatible JSON.
Sets the labels for this menu from an instance or a plain JSON object.
MenuLabels instance or compatible JSON.
ProtectedtypeProtectedvaluesProtectedselectedProtectedconfigsProtectednameProtected OptionalpluginProtectedparentsProtectedindexProtectedglobalProtectedanchorProtectedstylesProtectedlabels
Creates a new choice menu with optional pre-configured options and callbacks.