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.

change icon based on another object
#4
You can duplicate the script and CSS with different classes as needed.

See if this works for the background image not sizing correctly:
Code:
body.off .global-off .icon {
  background-image: url('/scada/resources/icons/control-stop.svg');
  background-size: 100%;
}

For read-only use this:
Code:
body.off .global-off {
  pointer-events: none;
}
Reply


Messages In This Thread
RE: change icon based on another object - by admin - 15.06.2022, 11:25

Forum Jump: