Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
2 Antworten
8367 Ansichten

can we customize the type attribute of field using JS? 

<input type="range"

will have to extend AbstractField or anything else?

Avatar
Verwerfen
Autor Beste Antwort

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
});
Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
2
März 15
4344
1
Juni 23
3644
1
Mai 23
2199
0
Mai 24
2167
1
Jan. 19
5349