Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
2 Respostas
8405 Visualizações

can we customize the type attribute of field using JS? 

<input type="range"

will have to extend AbstractField or anything else?

Avatar
Cancelar
Autor Melhor resposta

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
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
2
mar. 15
4355
1
jun. 23
3680
1
mai. 23
2221
0
mai. 24
2190
1
jan. 19
5368