HTML <menuitem> typ Atribut
Příklad
Prvek <menuitem> typu "command":
<menu>
<menuitem type="command" label="Save" onclick="save()">Save</menuitem>
</menu>
Definice a použití
Atribut type určuje typ příkazu/položky nabídky.
Podpora prohlížeče
Čísla v tabulce určují první verzi prohlížeče, která tento atribut plně podporuje.
Attribute | |||||
---|---|---|---|---|---|
type | Not supported | Not supported | Not supported | Not supported | Not supported |
Syntax
<menuitem type="command|checkbox|radio">
Hodnoty atributů
Value | Description |
---|---|
command | Default. Specifies a normal command with an action |
checkbox | Specifies a command that can be toggled using a checkbox |
radio | Specifies a command that can be toggled using a radio button |
❮ HTML tag <menuitem>