Ng-zorro-antd: We want nz-sider to overlay the content instead of pushing the content

Created on 6 Jul 2020  ·  3Comments  ·  Source: NG-ZORRO/ng-zorro-antd

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.

Layout

Most helpful comment

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

All 3 comments

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

You can use NzDrawer to make this happens

Is someone working on this issue?

Was this page helpful?
0 / 5 - 0 ratings