Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2 Replies
8340 Tampilan

can we customize the type attribute of field using JS? 

<input type="range"

will have to extend AbstractField or anything else?

Avatar
Buang
Penulis Jawaban Terbai

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
});
Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
2
Mar 15
4314
1
Jun 23
3627
1
Mei 23
2182
0
Mei 24
2145
1
Jan 19
5304