تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
8438 أدوات العرض

can we customize the type attribute of field using JS? 

<input type="range"

will have to extend AbstractField or anything else?

الصورة الرمزية
إهمال
الكاتب أفضل إجابة

for that, I have to extend and override InputField's _prepareInput method and set type as range

file: basic_fields.js

method : _prepareInput

we can add all HTML tag attributes like this

this.$input.attr({
     type: range, 
     // other attributes
});
الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
2
مارس 15
4366
1
يونيو 23
3702
1
مايو 23
2235
0
مايو 24
2211
1
يناير 19
5383