on 02-01-2019 6:21 AM
Hi All,
I need to show the string values in sap.m.slider control. Intead of number value need to display string value.
Example: [Day 1, Day2, Day 3]
Here is a sample of a Slider displaying Day n: https://embed.plnkr.co/Wc1kLwunLoug2Rf5
The Slider control has a customTooltips aggregation which awaits one (or two in case of RangeSlider) instances of extended sap.m.SliderTooltipBase (api).
Although the SliderTooltipBase is an abstract module, it comes with a corresponding SliderTooltipBaseRenderer so that the tooltip developer just needs to overwrite "renderTooltipContent" (source). The content will be then responsive since its container has the CSS value display: flex.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
jorge_cabanas Hmm, is the behavior reproducible here as well? https://openui5.hana.ondemand.com/test-resources/sap/m/SliderWithCustomElements.html
I was testing with a real device too, Android as well as iOS, but wasn't able reproduce the described issue.
Hi Durai,
According to the official documentation: "A sap.m.Slider control represents a numerical range and a handle".
So there is no easy way to implement this as string and probably if a way exists, would be tricky and not graceful.
Seeing that your requirement is select between a range of string values, I would strongly recommend you to use a comboBox control.
It would make it easier and faster.
Kind regards,
Jorge
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.