Logic Machine Forum
Custom value select width - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Visualization (https://forum.logicmachine.net/forumdisplay.php?fid=9)
+--- Thread: Custom value select width (/showthread.php?tid=4071)



Custom value select width - cdebackere - 30.05.2022

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


RE: Custom value select width - admin - 31.05.2022

Additional classes are added to popover controls with pcontrol- prefix. If you use custom class then the CSS rule should be .pcontrol-custom ul.


RE: Custom value select width - cdebackere - 31.05.2022

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


RE: Custom value select width - admin - 31.05.2022

Which firmware version?


RE: Custom value select width - cdebackere - 01.06.2022

201808
I guess an upgrade is advisable Smile

just upgrade to 202112 and solved Smile

thx


RE: Custom value select width - cdebackere - 10.06.2022

(01.06.2022, 08:31)cdebackere Wrote: 201808
I guess an upgrade is advisable Smile

just upgrade to 202112 and solved Smile

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;
}


RE: Custom value select width - admin - 10.06.2022

You are missing a dot before class names in CSS rules.


RE: Custom value select width - cdebackere - 10.06.2022

SO ******* stupid of me Smile Glad it's weekend again