Skip to Content
मेन्यू
This question has been flagged
2 Replies
8447 Views

can we customize the type attribute of field using JS? 

<input type="range"

will have to extend AbstractField or anything else?

Avatar
Discard
Author Best Answer

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
Discard
Related Posts Replies Views Activity
2
मार्च 15
4373
1
जून 23
3709
1
मई 23
2241
0
मई 24
2221
1
जन॰ 19
5391