Skip to Content
Menu
This question has been flagged
2 Replies
8268 Rodiniai

can we customize the type attribute of field using JS? 

<input type="range"

will have to extend AbstractField or anything else?

Portretas
Atmesti
Autorius 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
});
Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
2
kov. 15
4264
1
birž. 23
3571
1
geg. 23
2132
0
geg. 24
2103
1
saus. 19
5257