Skip to Content
Menú
This question has been flagged
2 Respostes
8282 Vistes

can we customize the type attribute of field using JS? 

<input type="range"

will have to extend AbstractField or anything else?

Avatar
Descartar
Autor 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
Descartar
Related Posts Respostes Vistes Activitat
2
de març 15
4273
1
de juny 23
3578
1
de maig 23
2143
0
de maig 24
2108
1
de gen. 19
5268