10.10.2022, 04:49
Hi
I'd like to create a widget which only display buttons for the lights which are switched on - similar in style to Apple's Home application which has a pop-up window from the dashboard which displays buttons for the active lights only.
Is there some sample javascript to dynamically add buttons to a visualisation using the value, name & address info from grp.all()?
I can see how I can hide or disable buttons already placed on a visualisation using JavaScript, however I'd prefer a compact layout which only includes buttons for lights that are switched on. The number of buttons displayed on the visu would neeed to change - somewhere between 1 and 20 buttons displayed as a list from about 50 lighting groups.
Kind Regards
James
I'd like to create a widget which only display buttons for the lights which are switched on - similar in style to Apple's Home application which has a pop-up window from the dashboard which displays buttons for the active lights only.
Is there some sample javascript to dynamically add buttons to a visualisation using the value, name & address info from grp.all()?
I can see how I can hide or disable buttons already placed on a visualisation using JavaScript, however I'd prefer a compact layout which only includes buttons for lights that are switched on. The number of buttons displayed on the visu would neeed to change - somewhere between 1 and 20 buttons displayed as a list from about 50 lighting groups.
Kind Regards
James