emilhe / dash-extensions

The dash-extensions package is a collection of utility functions, syntax extensions, and Dash components that aim to improve the Dash development experience
https://www.dash-extensions.com/
MIT License
417 stars 59 forks source link

`EventListener` support for the `resize` event? #282

Open hannahker opened 1 year ago

hannahker commented 1 year ago

I'd like to capture the window resize event using the EventListener component to help with creating a responsive app layout. To do this I've added the EventListener to my layout:

EventListener(id="event-listener", events=[{"event": "resize", "props": []}]) 

This does not trigger any callbacks, which I'm assuming is because this event does not bubble, or because it's not possible to capture events from the Window object? Is there a possible workaround here?

hannahker commented 1 year ago

Potentially related to #255

emilhe commented 8 months ago

I have added support in the latest 1.0.11 release. Could you test if it works as intended?