Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
8377 Переглядів

can we customize the type attribute of field using JS? 

<input type="range"

will have to extend AbstractField or anything else?

Аватар
Відмінити
Автор Найкраща відповідь

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
});
Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
2
бер. 15
4346
1
черв. 23
3657
1
трав. 23
2204
0
трав. 24
2170
1
січ. 19
5351