Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

We want nz-sider to overlay the content instead of pushing the content #5521

Closed
IsaacHub opened this issue Jul 6, 2020 · 8 comments
Closed
Assignees

Comments

@IsaacHub
Copy link

IsaacHub commented Jul 6, 2020

What problem does this feature solve?

nz-sider needs to have an option to make it overlay on top of existing content instead of pushing that content, while expanding the nz-sider from collapsed state, just like material design

https://stackblitz.com/edit/angular-keztzw

What does the proposed API look like?

A directive like nzBehavior="overlay | push" is better
<nz-sider nzCollapsible nzBehavior="overlay" nzWidth="200px">

It needs to have black overlay, once you click the overlay it should go back to folded state.

@IsaacHub
Copy link
Author

IsaacHub commented Jul 7, 2020

It's unbelievable that this simple basic feature is missing in this library.

@duongleh
Copy link
Contributor

You can use NzDrawer to make this happens

@PhilippMatzel
Copy link

Is someone working on this issue?

@PrabagaranSekar
Copy link

Is this issue fixed? if it means please post it here,
if not suggest me any other solution.
Thanks in advance

@notthewaquar
Copy link
Contributor

Is there an update for this issue ??
Please let us know, Thank you !!

@Jhonatanzr
Copy link

Esto seria supremamente util, poder realizarlo sin tener que depender de otros controles adicionales.

@predefinedx
Copy link
Contributor

I was also searching for solution to this problem. After some hours of tweaking here and there, i found one. position: fixed and adding zome z-index did the trick for me. In my case, i had to also add height calculation, because my header was also fixed, but after some tweaking, nz-sider is overlaying content, instead of pushing it away.

At the moment of writing this comment I cannot provide an example in some sandbox, but I certainly will try to find time, to generate an example of how I achieved this.

@Bagestan
Copy link
Contributor

NzDrawer worked fine for me, thanks @duongleh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests