Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

87
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda