String label, Menu instance, or Action instance.
Optionalmulti: booleanOptional flag for multi-line display.
Optionallabels: MenuFieldOptionLabelsJsonOptional label customizations.
Optionalstyles: MenuStylesJsonOptional style customizations.
Returns the display value: string label or the referenced Menu/Action name.
Returns true when this option is flagged for multi-line rendering.
Returns the display index if the value is a Menu or Action, or undefined for string values.
Returns the labels container for this option.
Sets the labels from an instance or a plain JSON object.
MenuFieldOptionLabels instance or compatible JSON.
Returns the styles container for this option.
Sets the styles from an instance or a plain JSON object.
MenuStyles instance or compatible JSON.
Serialises this option to a plain JSON-compatible object.
Creates a new menu field option from a value (string, Menu, or Action).