Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
8279 Представления

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
4273
1
июн. 23
3578
1
мая 23
2143
0
мая 24
2108
1
янв. 19
5267