The type of menu item.
Values of this type are strings. Possible values are:
- A menu item that just displays a label.
A menu item that represents a binary state. It displays a checkmark next to the label. Clicking the item toggles the checkmark. The
menus.onClickedlistener 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.
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
menus.onClickedlistener 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.
- A line separating a group of items.
BCD tables only load in the browser
The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.