![]() |
|
How to Display 1-bit Object in New Visu + Change Shape Border Color via JavaScript - Printable Version +- LogicMachine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Visu (https://forum.logicmachine.net/forumdisplay.php?fid=24) +--- Thread: How to Display 1-bit Object in New Visu + Change Shape Border Color via JavaScript (/showthread.php?tid=6211) |
How to Display 1-bit Object in New Visu + Change Shape Border Color via JavaScript - Fahd - 10.12.2025 Hi guys, I’m working with the new Visu, and I’m struggling to understand how to display a 1-bit object. Also, if possible, I need some help controlling the border color of the Shape widget using JavaScript. I want the border to turn green when the object at 32/1/6 is true, and red when it is false. Screenshot attached. RE: How to Display 1-bit Object in New Visu + Change Shape Border Color via JavaScript - Fahd - 11.12.2025 (10.12.2025, 18:47)Fahd Wrote: Hi guys, I I figured out how to display the 1bit ibject with choose switch widget and make it read only (big brain moment ...) RE: How to Display 1-bit Object in New Visu + Change Shape Border Color via JavaScript - admin - 11.12.2025 To add a border depending on the switch value: In Switch widget appearance set Additional CSS classes to switch-border Add to Custom CSS: Code: .switch-border[data-value="true"] .compactmode { |