HTML <menitem> ประเภทแอตทริบิวต์
ตัวอย่าง
<menuitem> องค์ประกอบประเภท "คำสั่ง":
<menu>
<menuitem type="command" label="Save" onclick="save()">Save</menuitem>
</menu>
ความหมายและการใช้งาน
แอตทริบิวต์ type ระบุประเภทของคำสั่ง/รายการเมนู
รองรับเบราว์เซอร์
ตัวเลขในตารางระบุเบราว์เซอร์รุ่นแรกที่สนับสนุนแอตทริบิวต์อย่างเต็มที่
Attribute | |||||
---|---|---|---|---|---|
type | Not supported | Not supported | Not supported | Not supported | Not supported |
ไวยากรณ์
<menuitem type="command|checkbox|radio">
ค่าแอตทริบิวต์
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 <menuitem>