HTML <menuitem> คุณสมบัติกลุ่มวิทยุ
ตัวอย่าง
<menuitem> องค์ประกอบที่เป็นของ radiogroup:
<menu>
<menuitem type="radio" label="Left" radiogroup="alignment" onclick="setAlign('left')">Left</menuitem>
</menu>
ความหมายและการใช้งาน
แอตทริบิวต์ radiogroup ระบุชื่อของกลุ่มคำสั่งที่จะสลับเมื่อมีการเปิดใช้งาน/สลับรายการคำสั่ง/เมนูเอง
หมายเหตุ:คุณลักษณะนี้สามารถใช้ได้เฉพาะเมื่อ type="radio"
รองรับเบราว์เซอร์
ตัวเลขในตารางระบุเบราว์เซอร์รุ่นแรกที่สนับสนุนแอตทริบิวต์อย่างเต็มที่
Attribute | |||||
---|---|---|---|---|---|
radiogroup | Not supported | Not supported | Not supported | Not supported | Not supported |
ไวยากรณ์
<menuitem radiogroup="groupname">
ค่าแอตทริบิวต์
Value | Description |
---|---|
groupname | Specifies the name of the group of command that will be toggled when the command itself is activated/toggled (only for type="radio") |
❮ แท็ก HTML <menuitem>