Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odgovori
8379 Prikazi

can we customize the type attribute of field using JS? 

<input type="range"

will have to extend AbstractField or anything else?

Avatar
Opusti
Avtor Best Answer

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
Opusti
Related Posts Odgovori Prikazi Aktivnost
2
mar. 15
4346
1
jun. 23
3657
1
maj 23
2204
0
maj 24
2170
1
jan. 19
5351