Input Range min Property
ဥပမာ
ဆလိုက်ဒါထိန်းချုပ်မှုအတွက် ခွင့်ပြုထားသော အနည်းဆုံးတန်ဖိုးကို ရယူပါ။
var x = document.getElementById("myRange").min;
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
min property သည် slider control တစ်ခု၏ min attribute ၏တန်ဖိုးကို သတ်မှတ်ပေးသည် သို့မဟုတ် ပြန်ပေးသည်။
min attribute သည် slider control တစ်ခုအတွက် အနည်းဆုံးတန်ဖိုးကို သတ်မှတ်သည်။
အကြံပြုချက်- တရားဝင်တန်ဖိုးများအကွာအဝေးကိုဖန်တီးရန်အတွက် min attribute ကို အမြင့်ဆုံး attribute နှင့် မကြာခဏအသုံးပြုပါသည်။
အကြံပြုချက်- အမြင့်ဆုံး attribute ၏တန်ဖိုးကို သတ်မှတ်ရန် သို့မဟုတ် ပြန်ပေးရန်၊ min ပိုင်ဆိုင်မှုကို အသုံးပြုပါ။
Browser ပံ့ပိုးမှု
Property | |||||
---|---|---|---|---|---|
min | Yes | 10.0 | Yes | Yes | Yes |
အထားအသို
အနည်းဆုံးပိုင်ဆိုင်မှုကို ပြန်ပေးပါ-
rangeObject.min
အနည်းဆုံးပိုင်ဆိုင်မှုကို သတ်မှတ်ပါ-
rangeObject.min = number
အိမ်ခြံမြေတန်ဖိုးများ
Value | Description |
---|---|
number | Specifies the minimum value allowed for the slider control |
နည်းပညာဆိုင်ရာအသေးစိတ်
ပြန်ပို့တန်ဖိုး- | ခွင့်ပြုထားသော အနည်းဆုံးတန်ဖိုးကို ကိုယ်စားပြုသော စာတန်းတစ်ခု |
---|
နောက်ထပ် ဥပမာများ
ဥပမာ
အနည်းဆုံးတန်ဖိုးကို ပြောင်းပါ-
document.getElementById("myRange").min = "50";
ဆက်စပ်စာမျက်နှာများ
HTML ရည်ညွှန်းချက်- HTML <input> min attribute
❮ Input Range Object