The Safari
class represents menus.
SDK
- Safari Desktop 5.1+
Framework
- Safari Extensions JS
Declaration
interface SafariExtensionMenu
Overview
Note
The Safari
class is used to represent contextual menus.
The Safari
class represents menus.
SDK
Framework
interface SafariExtensionMenu
Note
The Safari
class is used to represent contextual menus.
identifier
The unique identifier of the menu.
menu Items
The items in the menu.
visible
A Boolean value that indicates whether the menu is currently visible to the user.
append Menu Item
Creates a menu item and appends it to the menu.
append Separator
Creates a separator menu item and appends it to the menu.
insert Menu Item
Creates a menu item and inserts it in the menu at the given index.
insert Separator
Creates a separator menu item and inserts it in the menu at the given index.
remove Menu Item
Removes a menu item.