Is it possible to listen to window resize event with EventListener?

Hi community,

I want to trigger a clientside callback if the browser window resizes. I am using the EventListener component from dash-extensions for other mouse events. Is it possible to listen to the window resize and trigger the callback I tried adding the event but it did not trigger the callback

events=[{"event": "resize"}]

Am I doing something wrong? Maybe @Emil can guide me here.

Thanks in advance!

Hi @Vaishali and welcome to the community!

I think based on your usecase Dash Breakpoints component by @RenaudLN is what you are looking for. This package allows you to listen to browser resize events and trigger callbacks.