Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
2 Besvarelser
8394 Visninger

can we customize the type attribute of field using JS? 

<input type="range"

will have to extend AbstractField or anything else?

Avatar
Kassér
Forfatter Bedste svar

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
Kassér
Related Posts Besvarelser Visninger Aktivitet
2
mar. 15
4348
1
jun. 23
3671
1
maj 23
2213
0
maj 24
2173
1
jan. 19
5355