You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to implement responsive toolbars for my mosaic windows. Depending on how wide the current window is, the toolbarControls should either show a list of icons, or a single "more" icon that would open a dropdown. I can listen to changes in the tile arrangement via the onChange callback. But then I don't know how to get the width of the toolbar. I was hoping to be able to get a ref to the MosaicWindow. But that doesn't actually provide a handle on the HTML element.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I want to implement responsive toolbars for my mosaic windows. Depending on how wide the current window is, the
toolbarControls
should either show a list of icons, or a single "more" icon that would open a dropdown. I can listen to changes in the tile arrangement via theonChange
callback. But then I don't know how to get the width of the toolbar. I was hoping to be able to get aref
to the MosaicWindow. But that doesn't actually provide a handle on the HTML element.Any recommendations how to achieve this best?
Beta Was this translation helpful? Give feedback.
All reactions