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.

Enable/Disable Widget Visualization by an 1bit Object
#3
Hi,

This is the original clean custom JS :
Code:
$(function(){
 grp.listen('1/1/1', function(object, state) {
    if (state == 'value' && object.value == true ) {
        $("#widget-1").removeClass("hide");
   } else if (state == 'value' && object.value == false ) {
        $("#widget-1").addClass("hide");
   }
  }, true);
});
BR,

Erwin
Reply


Messages In This Thread
RE: Enable/Disable Widget Visualization by an 1bit Object - by Erwin van der Zwart - 29.05.2020, 07:51

Forum Jump: