diff --git a/files/en-us/mozilla/add-ons/webextensions/api/menus/itemtype/index.md b/files/en-us/mozilla/add-ons/webextensions/api/menus/itemtype/index.md index 491e03f7c89e66c..d022a81e7f4b933 100644 --- a/files/en-us/mozilla/add-ons/webextensions/api/menus/itemtype/index.md +++ b/files/en-us/mozilla/add-ons/webextensions/api/menus/itemtype/index.md @@ -6,19 +6,19 @@ browser-compat: webextensions.api.menus.ItemType sidebar: addonsidebar --- -The type of menu item. +The type of the menu item. ## Type Values of this type are strings. Possible values are: -- normal +- `normal` - : A menu item that just displays a label. -- checkbox +- `checkbox` - : A menu item that represents a binary state. It displays a checkmark next to the label. Clicking the item toggles the checkmark. The {{WebExtAPIRef("menus.onClicked")}} listener will be passed two extra properties: "checked", indicating whether the item is checked now, and "wasChecked", indicating whether the item was checked before the click event. -- radio +- `radio` - : A menu item that represents one of a group of choices. Just like a checkbox, this also displays a checkmark next to the label, and its {{WebExtAPIRef("menus.onClicked")}} listener is passed "checked" and "wasChecked". However, if you create more than one radio item, then the items function as a group of radio items: only one item in the group can be checked, and clicking an item makes it the checked item. -- separator +- `separator` - : A line separating a group of items. {{WebExtExamples}}