jQuery UI Widgets › Forums › Editors › ScrollBar, Slider, BulletChart, RangeSelector › jqxSlider rangeSlider Override Tooltip
Tagged: Angular slider, bootstrap slider, javascript slider, jquery slider, jqwidgets slider, jqxslider, jqxSlider rangeSlider tooltipFormatFunction tooltip override
This topic contains 6 replies, has 3 voices, and was last updated by Hristo 8 years, 1 month ago.
-
Author
-
Hello.
I was wondering how to change the tooltip in case of rangeSlider = true?
.jqxSlider({ rangeSlider: true, showButtons: true, min: 0, max: 100, value: 0, width: '100%', height: 60, mode: 'fixed', values: [10, 100], step: 1, showTickLabels: true, tooltip: true, tooltipHideDelay: 3000, tooltipFormatFunction: function(value) { console.log(value); return new String((value.rangeStart*3)+' - '+(value.rangeEnd*3)+' euro'); }, ticksFrequency: 10, showMinorTicks: true, minorTicksFrequency: 5, showTickLabels: true, tickLabelFormatFunction: function (value) { return value; } })
Thanks in advance.
Hello jqwidgetsdev,
Thank you for this feedback.
Maybe you could try to create some workaround.
Please, take a look this topic, could be helpful:
http://www.jqwidgets.com/community/topic/jqxslider-rangeslider-read-range/#post-87344Best Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.comThe reference is not useful to me. Do you perhaps have another workaround?
tia
Hello jqwidgetsdev,
Please, take a look this workaround:
https://www.jseditor.io/?key=slider-and-tooltip-workaroundBest Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.comHello Hristo.
Thank you very much for taking the time for the workaround.
It is exactly what I was looking for.
Best regards.
Thank you for the workaround.
I’m encountering this in 4.1.1 and I think I located actual problem.
Walking the minified code, _showTooltip in jqxslider.js calls g.tooltipFormatFunction and stores the result.
However, if g.toolTipCreated is true and g.rangeSlider is true, the result does not appear to ever be used.Offhand, if the user tooltipFormatFunction returns a result, that should be used rather than generating a tooltip internally.
Hello Gary,
Thank you for your assistance.
Please, update to the latest version.Best Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.com -
AuthorPosts
You must be logged in to reply to this topic.