HTML DOM MenuItem Object
MenuItem Object
MenuItem အရာဝတ္ထုသည် HTML <menuite> ဒြပ်စင်ကို ကိုယ်စားပြုသည်။
မှတ်ချက်- <menuite> ဒြပ်စင်ကို လက်ရှိတွင် Firefox တွင်သာ ပံ့ပိုးထားသည်။
MenuItem Object ကို ဝင်သုံးပါ။
getElementById() ကို အသုံးပြု၍ <menuitem> ဒြပ်စင်တစ်ခုကို သင်ဝင်ရောက်နိုင်သည် ။
var x = document.getElementById("myMenuItem");
MenuItem Object တစ်ခုကို ဖန်တီးပါ။
document.createElement() နည်းလမ်းကို အသုံးပြု၍ <menuitem> ဒြပ်စင်တစ်ခုကို ဖန်တီးနိုင်သည်-
var x = document.createElement("MENUITEM");
MenuItem Object Properties
Property | Description |
---|---|
checked | Sets or returns whether the menu item should be checked |
command | Sets or returns the value of the command attribute of the menu item |
default | Sets or returns whether the menu item should be the default command |
disabled | Sets or returns whether the menu item should be disabled |
icon | Sets or returns an image that represents the menu item |
label | Sets or returns the value of the label attribute of the menu item |
radiogroup | Sets or returns the value of the radiogroup attribute of the menu item |
type | Sets or returns the value of the type attribute of the menu item |
စံသတ်မှတ်ချက်များနှင့် အစီအစဉ်များ
MenuItem အရာဝတ္ထုသည် စံ ဂုဏ်သတ္တိများ နှင့် ဖြစ်ရပ်များ ကို ပံ့ပိုး ပေးပါသည်။
ဆက်စပ်စာမျက်နှာများ
HTML ရည်ညွှန်း- HTML <menuite> တဂ်