Posts: 33
Threads: 8
Joined: Jul 2015
Reputation:
0
Is it possible to control the custom value select popup for specific objects by custom CSS class on the object? (via css or JS)
Or is it only possible to do that for all custom value select or even all popups?
I currently use
.control-vselect ul {
max-width : 98px;
}
but that's on all custom value select
Don't ask what we can do in KNX but wonder what we can't - www.KNXlogic.eu
Posts: 7758
Threads: 42
Joined: Jun 2015
Reputation:
447
Additional classes are added to popover controls with pcontrol- prefix. If you use custom class then the CSS rule should be .pcontrol-custom ul.
Posts: 33
Threads: 8
Joined: Jul 2015
Reputation:
0
thx admin,
but not sure I understood 100%,
What I did:
- add 'myClass' as additional class to object item
- added in css: .pcontrol-myClass ul { ... }
looking into the dev console I see myClass is indeed added to the object control classes.
But I can't see the pcontrol-myClass in the classes of the popover control
Don't ask what we can do in KNX but wonder what we can't - www.KNXlogic.eu
Posts: 33
Threads: 8
Joined: Jul 2015
Reputation:
0
01.06.2022, 08:31
(This post was last modified: 01.06.2022, 09:09 by cdebackere.)
201808
I guess an upgrade is advisable
just upgrade to 202112 and solved
thx
Don't ask what we can do in KNX but wonder what we can't - www.KNXlogic.eu
Posts: 33
Threads: 8
Joined: Jul 2015
Reputation:
0
(01.06.2022, 08:31)cdebackere Wrote: 201808
I guess an upgrade is advisable
just upgrade to 202112 and solved
thx
One more question: how can we achieve something similar (set width) for a direct input field?
I tried several logic opitions, but none had any effect
.pcontrol-BWwidth popover-content {
max-width : 98px;
}
.pcontrol-BWwidth input-prepend {
max-width : 98px;
}
.pcontrol-BWwidth input-append {
max-width : 98px;
}
Don't ask what we can do in KNX but wonder what we can't - www.KNXlogic.eu
Posts: 7758
Threads: 42
Joined: Jun 2015
Reputation:
447
You are missing a dot before class names in CSS rules.
Posts: 33
Threads: 8
Joined: Jul 2015
Reputation:
0
SO ******* stupid of me
Glad it's weekend again
Don't ask what we can do in KNX but wonder what we can't - www.KNXlogic.eu