type
- Type: string
- The type of button. If this attribute is not present, a normal button is created. You can set this attribute to the value
menu
to create a button with a menu popup. This will typically cause the button to be displayed differently.
menu
: Set the type attribute to the valuemenu
to create a button with a menu popup. Place amenupopup
element inside the button in this case. The user may click anywhere on the button to open and close the menu.menu-button
: You can also use the valuemenu-button
to create a button with a menu. Unlike themenu
type, this type requires the user to press the arrow to open the menu, but a different command may be invoked when the main part of the button is pressed.checkbox
: Use this type to create a toggle button which will switch thechecked state
each time the button is pressed.radio
: Use this type to create a radio button. You can also create a group of toolbarbuttons using this type and the attributegroup
.
type value | <toolbarbutton > |
---|---|
menu | |
menu-button | |
checkbox | |
radio |