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

    Class Submenu

    A type that is a submenu inside a Menu or Submenu.

    Hierarchy

    • MenuItemBase
      • Submenu
    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 submenu is enabled or not.

      Parameters

      • enabled: boolean

      Returns Promise<void>

    • Set this submenu as the Window menu for the application on macOS.

      This will cause macOS to automatically add window-switching items and certain other items to the menu.

      • Windows / Linux: Unsupported.

      Returns Promise<void>

    • Set this submenu as the Help menu for the application on macOS.

      This will cause macOS to automatically add a search box to the menu.

      If no menu is set as the Help menu, macOS will automatically use any menu which has a title matching the localized word "Help".

      • Windows / Linux: Unsupported.

      Returns Promise<void>