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
Hi, I was wondering if it's possible to have some control over the behaviour when the grid has a width < MINIMUM_WIDTH_FOR_GRID_CONTROLS, currently only the Full screen is enabled, I imagine that at least 2/3 controls could fit the size as well.
The text was updated successfully, but these errors were encountered:
This makes sense, considering that the consuming application has so much direction over what shows in the app bar itself. Assume exposing a prop would work for you so you could set it yourself?
I think just giving the control to the end user to trigger that behavior or not would be more than sufficient, you can keep the current behavior as default, and for users who want to disable the behavior, they can control the visibility behavior manually.
As an example, I have a table with a mode visualize:
When the mode is activated, the grid goes to 400px:
right now I just hide all visibiliy, and show a button manually to go back to the full table mode. If I can just disable the MINIMUM_WIDTH_FOR_GRID_CONTROLS I am sure I won't break the design, because I will only show the controls that will fit the size, e.g. my extra control and possibly one of the visibility controls.
Boolean props tend to grow unwieldy as time passes. I think taking a minSizeForControls prop that the application could pass 0 to for disabling is the most future proof?
Hi, I was wondering if it's possible to have some control over the behaviour when the grid has a
width < MINIMUM_WIDTH_FOR_GRID_CONTROLS
, currently only theFull screen
is enabled, I imagine that at least 2/3 controls could fit the size as well.The text was updated successfully, but these errors were encountered: