Se rendre au contenu
Menu
Cette question a été signalée
2 Réponses
8327 Vues

can we customize the type attribute of field using JS? 

<input type="range"

will have to extend AbstractField or anything else?

Avatar
Ignorer
Auteur Meilleure réponse

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
Ignorer
Publications associées Réponses Vues Activité
2
mars 15
4311
1
juin 23
3621
1
mai 23
2176
0
mai 24
2139
1
janv. 19
5303