19.11.2016, 11:15
Hi I wish to use slider for dimmer in my LM4 but I want to change the way it looks. Can anybody help me and let me know if this has been done earlier.
Regards
Hima
Hima
Customize Slider
|
19.11.2016, 11:15
Hi I wish to use slider for dimmer in my LM4 but I want to change the way it looks. Can anybody help me and let me know if this has been done earlier.
Regards
Hima
21.11.2016, 08:29
Customized slider example. This won't be visible in the editor, only in the user Visualization.
Set Additional classes to slider-alt and enable Show control. Add to Custom CSS: Code: .slider-alt .slider-min,
22.11.2016, 12:25
As for you task, can you provide a sample image of what kind of control you want to create?
(22.11.2016, 12:25)admin Wrote: As for you task, can you provide a sample image of what kind of control you want to create? I wish to create a slider like the one attached.
Regards
Hima
15.01.2017, 17:06
Hi,
I tried the example that admin provided but ran into some unexpected behaviour. I've added the css script to Custom css, added slider-alt to additional classes and enabled Show Control. In User Visualisation the new slider appears instead of the icon that I have assigned to the object, so the slider is there permanently. If I disable Show Control, then the icon is shown and after I click on the icon, a slider appears. However this is the default slider. I would like to have the icon to be shown and when clicked, the modified slider to appear. What needs to be done to obtain this? Thanks.
16.01.2017, 07:27
Controls in popup elements are shared between all icons so it's not possible to apply custom classes to them. The only way for it to work is to override all sliders with custom CSS.
16.01.2017, 10:05
(This post was last modified: 16.01.2017, 10:06 by Erwin van der Zwart.)
Hi,
What you also can do is create a widget with the slider-alt and open the widget with a button, this way you can have same effect on single button, but you have to set all locations of the widget by hand to make them open on your wanted position. BR, Erwin
16.01.2017, 13:27
Thanks for the tip Erwin.
I now created a widget with the slider on it. However in Usermode visualization the slider is shown above the widget (see attached image). I tried changing several parameters in the css without good result. What parameters do I have to change in the css for the slider to appear inside the widget? Thanks.
16.01.2017, 13:57
(This post was last modified: 16.01.2017, 13:58 by Erwin van der Zwart.)
Hi,
Try to re-position it with: (my test widget was 302x44 like original slider size) Code: .slider-alt { BR, Erwin
16.01.2017, 14:31
That works.
Many thanks for your support!
01.02.2017, 13:17
Hi,
With you guys help I have now succeeded to implement almost what I would like, apart from one thing: I would like to have the slider to have rounded corners at the ends. I managed to get a rounded edge at the right side, but no matter what I try I can't get the left side rounded (see attached image). How do I round the left side of the slider? Thanks.
01.02.2017, 14:34
The problem is that active slider background overflows to the left so even if you set border radius it won't show.
28.02.2017, 17:25
Hi,
How can I put the slider-alt of the example in vertical position? I try to select this in a object properties but it doesn't appear properly... THX
11.03.2017, 16:19
Hi
I am wondering. The thing I'm really missing is a thermometer with old-style thermometer look. Would it be possible to modify slider for this purpose? I mean rounded boxing, gray background and blue mercury inside? Optionaly with a scale?
LM5Lp, firmware: 2018.08.22 and 2021.12.15, FlashSYS v2, ARMv7 Processor rev 5 (v7l), kernel 4.4.151 and 4.4.259
03.12.2019, 11:54
CSS for custom vertical slider:
Code: .usermode .slider-alt .slider-v .slider,
Hi,
I'm working with your last CSS. I'd like change this point (width of the button and position of the text over the button), can you help me ? BR, Alberto
KNX Advanced Partner + Tutor
21.04.2020, 11:09
Width of the buttons can be changed by adjust left/right padding. Icon will be centered if left/right padding is the same.
Code: .slider-alt .slider-v .slider-max, In case you need to change vertical spacing. Code: .slider-alt .slider-v .slider-max, You will probably need to adjust slider handle element as well. Here width is set directly. Code: .slider-alt .slider-v .slider-handle {
21.04.2020, 13:14
thanks....now I understand more things.....
This is my new range-slider (it is not perfect....but I can do it better next time!! ) Other questions ( I hope without javascript ): - is it possible put the value of the object over the handle ? - it is possible to color the slider only under the handle (from bottom to top) ?
KNX Advanced Partner + Tutor
21.04.2020, 14:18
This is not possible with CSS, only with Custom JS.
11.05.2020, 07:36
Hello,
I have problems with Slider. Bottom border not showing rounded borders. Any way to correct this? Thanks |
« Next Oldest | Next Newest »
|