07.10.2017, 11:28
(This post was last modified: 07.10.2017, 14:57 by Erwin van der Zwart.)
uHi,
Exactly the same, just remove the command that change the visibility:
Personally i think you should leave it unchanged as the original does visual indicates it's disabled.. (maybe you should change only the amount of opacity from 0.5 to 0.8 )
BR,
Erwin
Exactly the same, just remove the command that change the visibility:
Code:
$(function(){
grp.listen('1/1/1', function(object) {
if (object.value == true ) {
$(".lockbyknx").addClass("item-read-only");
} else if (object.value == false ) {
$(".lockbyknx").removeClass("item-read-only");
}
}, true); // set to true to send on same value
});
BR,
Erwin