Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

84
Vistas
Is there a way to call a function on each step change of <input type='range'>?

I have simple bootstrap slider in HTML and I want it to show a value that a user selects while the user still deciding on the value.

html right now:

<div  class="container-sm position-fixed w-25 bottom-0 end-0">
   <label for="customRange1" class="form-label" #zoom_label>Example range</label>
   <input type="range" class="form-range" id="customRange1" min="0.2" max="5.0" step="0.1" 
   #zoom (mousedown)="test2(zoom, zoom_label)">
</div>

I am using Angular 12; I tried using an OnChange event but that only calls a function when a user changes the slider's position. OnMouseDown seems to be making calls but the input's value doesn't change as expected.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Try to use input event instead:

<div  class="container-sm position-fixed w-25 bottom-0 end-0">
   <label for="customRange1" class="form-label" #zoom_label>Example range</label>
   <input type="range" class="form-range" id="customRange1" min="0.2" max="5.0" step="0.1" 
   #zoom (input)="test2(zoom, zoom_label)">
</div>
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda