Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
8395 Visualizzazioni

can we customize the type attribute of field using JS? 

<input type="range"

will have to extend AbstractField or anything else?

Avatar
Abbandona
Autore Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
mar 15
4348
1
giu 23
3671
1
mag 23
2213
0
mag 24
2173
1
gen 19
5356