Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
8273 Widoki

can we customize the type attribute of field using JS? 

<input type="range"

will have to extend AbstractField or anything else?

Awatar
Odrzuć
Autor Najlepsza odpowiedź

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
});
Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
mar 15
4272
1
cze 23
3578
1
maj 23
2139
0
maj 24
2106
1
sty 19
5263