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.

Button disable
#5
Add to Custom JavaScript:
Code:
$(function() {
  if (typeof grp != 'object') {
    return;
  }

  grp.listen('1/1/1', function(object, state) {
    $('.disabledbyknx').toggleClass('el-disabled', object.value == true);
  });
});

Add to Custom CSS:
Code:
.el-disabled {
  opacity: 0.5;
}
.el-disabled,
.el-disabled * {
  pointer-events: none !important;
}
Reply


Messages In This Thread
Button disable - by Pawel - 08.06.2016, 11:20
RE: Button disable - by Erwin van der Zwart - 08.06.2016, 19:24
RE: Button disable - by legolas2069 - 29.06.2018, 07:26
RE: Button disable - by Pawel - 09.06.2016, 06:37
RE: Button disable - by admin - 29.06.2018, 08:04
RE: Button disable - by legolas2069 - 03.07.2018, 10:25
RE: Button disable - by Thomas - 06.08.2018, 08:15
RE: Button disable - by Erwin van der Zwart - 06.08.2018, 10:55
RE: Button disable - by DGrandes - 17.12.2019, 12:48

Forum Jump: