Class

SafariExtensionMenu

The SafariExtensionMenu class represents menus.

Overview

Topics

Working with Menus

identifier

The unique identifier of the menu.

menuItems

The items in the menu.

visible

A Boolean value that indicates whether the menu is currently visible to the user.

Adding Menu Items

appendMenuItem

Creates a menu item and appends it to the menu.

appendSeparator

Creates a separator menu item and appends it to the menu.

insertMenuItem

Creates a menu item and inserts it in the menu at the given index.

insertSeparator

Creates a separator menu item and inserts it in the menu at the given index.

Removing Menu Items

removeMenuItem

Removes a menu item.