Class

SafariExtensionMenuItem

The SafariExtensionMenuItem class represents items in a menu.

Overview

Topics

Identifying Menu Items

command

The command identifier that the menu item sends when activated.

identifier

The unique identifier of the menu item.

Working with Menu Items

separator

A Boolean value that indicates whether the menu item is a separator.

title

The title displayed in the menu.

image

The URL of the image shown next to the menu item.

submenu

The submenu displayed by this menu item.

Working with Menu Item State

visible

A Boolean value that indicates whether the menu item is visible.

disabled

A Boolean value that indicates whether a menu item is disabled.

checkedState

The state of the menu item.

Constants

Menu Item States

The state of a menu item, indicated by a small icon displayed next to the title.

Relationships

Inherits From