Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
8287 Vizualizări

can we customize the type attribute of field using JS? 

<input type="range"

will have to extend AbstractField or anything else?

Imagine profil
Abandonează
Autor Cel mai bun răspuns

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
});
Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
2
mar. 15
4277
1
iun. 23
3591
1
mai 23
2149
0
mai 24
2116
1
ian. 19
5274