27.10.2016, 12:55
(This post was last modified: 27.10.2016, 12:56 by miro.suchanek.)
Dear Erwin,
I would like to ask you for advice. I would like to show notification widget after the KNX object is changed.
I used your javascript code:
But after clicking outside the widget, the widget hides - its ok. After that, control of showing the widget from KNX object is not possible.
Thank you
I would like to ask you for advice. I would like to show notification widget after the KNX object is changed.
I used your javascript code:
Code:
$(function(){
if (typeof objectStore !== 'undefined') {
grp.listen('14/7/1', function(object, state){
if (state == 'value' && object.value == true ) {
$("#widget-69").removeClass("hide");
}
}, true);
grp.listen('14/7/1', function(object, state){
if (state == 'value' && object.value == false ) {
$("#widget-69").addClass("hide");
}
}, true);
}
});
But after clicking outside the widget, the widget hides - its ok. After that, control of showing the widget from KNX object is not possible.
Thank you