Tauri Core API - v2.6.0
    Preparing search index...

    Class MenuItem

    A menu item inside a Menu or Submenu and contains only text.

    Hierarchy

    • MenuItemBase
      • MenuItem
    Index

    Accessors

    • get rid(): number

      Returns number

    • get id(): string

      The id of this item.

      Returns string

    Methods

    • Destroys and cleans up this resource from memory. You should not call any method on this object anymore and should drop any reference to it.

      Returns Promise<void>

    • Sets whether this menu item is enabled or not.

      Parameters

      • enabled: boolean

      Returns Promise<void>

    • Sets the accelerator for this menu item.

      Parameters

      • accelerator: null | string

      Returns Promise<void>