跳至内容
菜单
此问题已终结
2 回复
8427 查看

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
});
形象
丢弃
相关帖文 回复 查看 活动
2
3月 15
4365
1
6月 23
3698
1
5月 23
2233
0
5月 24
2202
1
1月 19
5381