sesaparcours
    Preparing search index...

    Fake class which should be extended to avoid inheriting static properties

    Hierarchy (View Summary)

    Index

    Constructors

    • Class representing an item in a menu.

      Parameters

      • content: string | HTMLElement

        Text caption to display as the content of the item, or a HTML element to display.

      • Optionalopt_value: string

        Data/model associated with the menu item.

      Returns MenuItem__Class

    Methods

    • Creates the menuitem's DOM.

      Returns Element

      Completed DOM.

    • Dispose of this menu item.

      Returns void

    • Gets the menu item's element.

      Returns Element

      The DOM element.

    • Gets the unique ID for this menu item.

      Returns string

      Unique component ID.

    • Gets the value associated with the menu item.

      Returns any

      value Value associated with the menu item.

    • Returns true if the menu item is enabled, false otherwise.

      Returns boolean

      Whether the menu item is enabled.

    • Set the handler that's called when the menu item is activated by the user. obj will be used as the 'this' object in the function when called.

      Parameters

      Returns void

    • Performs the appropriate action when the menu item is activated by the user.

      Returns void

    • Sets the menu item to be checkable or not. Set to true for menu items that represent checkable options.

      Parameters

      • checkable: boolean

        Whether the menu item is checkable.

      Returns void

    • Checks or unchecks the component.

      Parameters

      • checked: boolean

        Whether to check or uncheck the component.

      Returns void

    • Enables or disables the menu item.

      Parameters

      • enabled: boolean

        Whether to enable or disable the menu item.

      Returns void

    • Highlights or unhighlights the component.

      Parameters

      • highlight: boolean

        Whether to highlight or unhighlight the component.

      Returns void

    • Set menu item's rendering direction.

      Parameters

      • rtl: boolean

        True if RTL, false if LTR.

      Returns void

    • Set the menu item's accessibility role.

      Parameters

      • roleName: Role

        Role name.

      Returns void