- 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
menuto create a button with a menu popup. This will typically cause the button to be displayed differently.
menu: Set the type attribute to the value
menuto create a button with a menu popup. Place a
menupopupelement 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 value
menu-buttonto create a button with a menu. Unlike the
menutype, 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 the
checked stateeach 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 attribute