11.09.2016, 21:27
(This post was last modified: 11.09.2016, 22:48 by Erwin van der Zwart.)
Hi Buuuudzik,
There is nothing changed, but with custom JavaScript it's possible.
Here is a sample on how to do that:
You have to check the widget id of your widget, in this sample it's id: 'widget-1'
BR,
Erwin van der Zwart
There is nothing changed, but with custom JavaScript it's possible.
Here is a sample on how to do that:
You have to check the widget id of your widget, in this sample it's id: 'widget-1'
Code:
$(function(){
// Open widget on load
$("#widget-1").removeClass("hide");
// Optional: Position widget (absolute position)
//document.getElementById("widget-1").style.top = "100px";
//document.getElementById("widget-1").style.left = "100px";
// Open widget on KNX command
grp.listen('1/1/1', function(object, state) {
if (state == 'value' && object.value == true ) {
// Command to show widget
$("#widget-1").removeClass("hide");
}
}, true); // set to true to execute on same object value
// Close widget on KNX command
grp.listen('1/1/1', function(object, state) {
if (state == 'value' && object.value == false ) {
// Command to hide widget
$("#widget-1").addClass("hide");
}
}, true); // set to true to execute on same object value
});
BR,
Erwin van der Zwart