コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
7982 ビュー

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
4076
1
6月 23
3268
1
5月 23
1963
0
5月 24
1927
1
1月 19
5103