跳至內容
選單
此問題已被標幟
2 回覆
8385 瀏覽次數

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
4346
1
6月 23
3659
1
5月 23
2205
0
5月 24
2171
1
1月 19
5352