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

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
4343
1
июн. 23
3644
1
мая 23
2198
0
мая 24
2167
1
янв. 19
5349