This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

How to Display 1-bit Object in New Visu + Change Shape Border Color via JavaScript
#3
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 {
  border: 1px green solid;
}
.switch-border[data-value="false"] .compactmode {
  border: 1px red solid;
}
Reply


Messages In This Thread
RE: How to Display 1-bit Object in New Visu + Change Shape Border Color via JavaScript - by admin - 11.12.2025, 07:26

Forum Jump: