@termun/core - v0.0.0
    Preparing search index...

    Class MenuFieldOption

    Index

    Constructors

    Methods

    • Returns the display value: string label or the referenced Menu/Action name.

      Returns string

    • Replaces the underlying value.

      Parameters

      • value: string | Action | Menu

        String label, Menu instance, or Action instance.

      Returns this

    • Returns true when this option is flagged for multi-line rendering.

      Returns boolean

    • Returns the display index if the value is a Menu or Action, or undefined for string values.

      Returns number | undefined

    • Returns the underlying Menu or Action instance, or undefined if this is a string value.

      Returns Action | Menu | undefined

    • Returns the styles container for this option.

      Returns MenuStyles

    • Sets the styles from an instance or a plain JSON object.

      Parameters

      Returns this

    Properties

    value: string | Action | Menu
    multi: boolean
    styles: MenuStyles