Blazorise: Feature: Media queries / resize events

Created on 14 Jul 2020  Â·  4Comments  Â·  Source: stsrki/Blazorise

I need to make some custom UI. That when I pass a certain width (breakpoint) that that part is automatically hidden. Most of the things you can do by using the css breakpoints, but not all.

I found a library that has this functionality, but I would like to limit the number of external libs. How whould you guys think about incorporating this behavior in Blazorise?

https://github.com/EdCharbeneau/BlazorSize

Feature Request â›±

Most helpful comment

@stsrki Yup - that sounds good.

All 4 comments

@MitchellNZ I think you implemented similar functionality on Bar component. It might be good idea to move it to the Layout or just copy the same functionality on Layout. Either way there could be as BreakpointChanged event after each change.

Or maybe have BreakpointService that could be injected into every component that needs it.

This sounds like a good idea!

I will take a look into this when I get a chance.

@MitchellNZ do you think this would be a good feature for 0.9.4?

@stsrki Yup - that sounds good.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

smilyte picture smilyte  Â·  4Comments

brettwinters picture brettwinters  Â·  4Comments

sroy2020 picture sroy2020  Â·  5Comments

danielheddelin picture danielheddelin  Â·  5Comments

Unterhosengummi picture Unterhosengummi  Â·  6Comments