Instance Method

appendSeparator

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

Declaration

SafariExtensionMenuItem appendSeparator (in DOMString identifier);

Parameters

identifier

The unique identifier of the menu item.

Return Value

The menu item that was appended.

Discussion

If a menu item with the same identifier already exists, it is removed from before appending the separator.

See Also

Adding Menu Items

appendMenuItem

Creates a 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.