Answer the question
In order to leave comments, you need to log in
How to create custom input range slider in angular 2?
Hello. Faced the following problem while developing custom input range slidera.
I have a container that contains objects.
<div class="box" (mouseenter)="onEvent($event)" #container
(mouseleave)="onEvent($event)"
(mousemove)="coordinates($event)"
on-click="onEvent($event)"
on-dblclick="onEvent($event)"
on-contextmenu="onEvent($event)">
<p class="type">Type: {{event?.type}}</p>
<p>x: {{clientX}}, y: {{clientY}}</p>
<p>ctrl: {{event?.ctrlKey}}, shift: {{event?.shiftKey}}, meta: {{event?.metaKey}}</p>
<div class="slider-container" #sliderContainer (mousemove)="moveSwitch()">
<div id="firstSwitcher" class="slider-switch" style="margin-left: 400px"></div>
<input type="button" value="asdasd" style="margin-left: 300px" #firstSwitcher>
</div>
</div>
(mousemove)="coordinates($event)"
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question