'How to update advanced tooltip values in sap.m.Rangeslider in sapui5?
<mvc:View
height="100%"
controllerName="view.Main"
xmlns:mvc="sap.ui.core.mvc"
xmlns="sap.m">
<Page
title="Page"
class="marginBoxContent" >
<Text text="RangeSlider with tickmarks and labels" class="sapUiSmallMarginBottom" />
<RangeSlider showAdvancedTooltip="true" enableTickmarks="true" class="sapUiSmallMarginBottom" change="onUpdateSlider">
<ResponsiveScale tickmarksBetweenLabels="10" />
</RangeSlider>
</Page>
</mvc:View>
onUpdateSlider:function(oEvent)
{
var oValue = oEvent.getSource().getValue();
var oValue2 = oEvent.getSource().getValue2();
if(oValue > oValue2)
{
oEvent.getSource().setValue(oValue2-3);
oEvent.getSource().setValue2(oValue2);
}
else if (oValue2 < oValue1)
{
oEvent.getSource().setValue2(oValue1+3);
oEvent.getSource().setValue(oValue1);
}
}
It doesn't update tooltip texts.
The tooltip texts of value and value2 should update on change event and setting value and value2 but it doesnt get updated.Any way tooltip can be updated.What happens now is after change event if it reaches a condition we set value and value2 but tooltip doesn't get updated and shows old values of value and value2
Kindly suggest how can i updated tooltip values. Is it a bug from standard control sap.m.RangeSlider ?
Solution 1:[1]
Thanks for reporting the issue. The bug is now fixed by the commit 2a69d08.
The issue is no longer reproducible: https://jsbin.com/hiwujet/edit?html,js,output
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
