Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
8900 Zobrazení

can we customize the type attribute of field using JS? 

<input type="range"

will have to extend AbstractField or anything else?

Avatar
Zrušit
Autor Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
bře 15
4775
1
čvn 23
4185
1
kvě 23
2711
0
kvě 24
2589
1
led 19
5841