Skip to Content
Menu
This question has been flagged
2 Replies
7274 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
Mar 15
3524
1
Jun 23
2261
1
May 23
1330
0
May 24
1337
1
Jan 19
4529