|
change(args) {
//Check the value and show the alert.
if(args.value== 40)
{
alert("event triggered");
}
} |
Hi RakhiS,Greetings from Syncfusion support.We have checked your requirement with Slider component. We suspect that your requirement is to show the alert message when it reached the Live. Change event is triggered when changing the slider value. Using that event, we have check the slider value and show the alert message.Refer the below code snippet.
change(args) {//Check the value and show the alert.if(args.value== 40){alert("event triggered");}}Refer the below sample link.If we misunderstood your requirement. Could you please share the exact requirement of your slider component. It will help us to resolve your issue at the earliest.Please let us know, if you need any further assistance.Regards,Sowmiya P.
|
tooltipChangeHandler(args) {
var tootip = document.querySelector(".e-tooltip-wrap");
if(tootip) {
if(args.value == 0 || args.value == 40 ||args.value == 20 ){
if(tootip.classList.contains("hide"))
tootip.classList.remove("hide");
}
else {
tootip.classList.add("hide");
}
}
}
.e-tooltip-wrap.e-slider-tooltip.hide {
visibility: hidden;
display: none;
}
.e-slider-container #slider .e-handle{
transform: scale(1) !important;
} |
Hi RakhiS,Based on your shared details, we suspect that your requirement is to show the tooltip for particular values in Slider component. To achieve this, we have added a class in tooltip’s wrapper element and set the visibility as hidden for other values and show tooltip only on your desired values.Refer the below code snippet.
tooltipChangeHandler(args) {var tootip = document.querySelector(".e-tooltip-wrap");if(tootip) {if(args.value == 0 || args.value == 40 ||args.value == 20 ){if(tootip.classList.contains("hide"))tootip.classList.remove("hide");}else {tootip.classList.add("hide");}}}.e-tooltip-wrap.e-slider-tooltip.hide {visibility: hidden;display: none;}.e-slider-container #slider .e-handle{transform: scale(1) !important;}Refer the below sample link:Please let us know, if you need any further assistance.Regards,Sowmiya.P