Menu JSON including name, type, optional choice/input values and configs.
Returns the underlying choice menu if configured, or undefined.
Returns the underlying input menu if configured, or undefined.
Returns true when a choice menu has been configured.
Returns true when an input menu has been configured.
Returns an option by name from the choice menu, or undefined if not found.
Option value/name to look up.
Returns the option list from the choice menu, optionally sorted for display.
When true, applies the display-order sorting algorithm.
Returns the currently selected option names from the choice menu.
Adds an option to the choice menu.
The option to add (Menu, Action, MenuFieldOption, or raw JSON value).
Returns the global sidebar choices rendered alongside the menu.
Replaces the global sidebar choices.
Array of Choice or Separator items.
Serialises this field menu to a plain JSON-compatible object.
Renders and runs the field menu (choice + optional input).
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.
ProtectedtypeProtected OptionalchoiceProtected OptionalinputProtectedglobalProtectednameProtected OptionalpluginProtectedparentsProtectedindexProtectedglobalProtectedanchorProtectedstylesProtectedlabels
Creates a new field menu (composite choice+input menu) from JSON.