What angularjs events can I subscribe on? (e.g. openhab-update)


for a widget I would need to know when the outer frame size has changed so to trigger some scripts. openhab-update fires when an item updates, but I would need an event when the widget frame size changes, or at least when the display size changes.

Is there such an event?


Those sound like client side events. OH is server side software.

Yes you are right - thinking this through I get the point.
I guess I need to attach an event listener to the Window object …

1 Like

May be this helps: https://stackoverflow.com/questions/41175143/how-can-i-get-the-window-width-in-angularjs-on-resize-from-a-controller

The UI would need to somehow send that back to OH though.

That would be complex, especially with a mobile browser or app when not connected to the internal network.

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.