Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
8259 Vistas

can we customize the type attribute of field using JS? 

<input type="range"

will have to extend AbstractField or anything else?

Avatar
Descartar
Autor Mejor respuesta

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
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
2
mar 15
4243
1
jun 23
3563
1
may 23
2125
0
may 24
2097
1
ene 19
5250