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 attribute in visu following a knx object
#5
Does not seem to be working, I probably got something wrong 

I pasted this in in my javascript custom:
Code:
$(function() {
  if (typeof grp != 'object') {
    return;
  }

  grp.listen('32/1/22', function(object, state) {
    $('.dis_da_totale').toggleClass('el-disabled', object.value == false);
  });
});
 
pasted this in Custom CSS:
Code:
.el-disabled {
  opacity: 0.5;
}
.el-disabled,
.el-disabled * {
  pointer-events: none !important;
}

and I used dis_da_totale as an additional class for the button is that correct, or am I missing something?
Reply


Messages In This Thread
RE: Change attribute in visu following a knx object - by Andrea Becagli - 27.08.2024, 11:31

Forum Jump: