-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Open
Description
What problem does this feature solve?
In my app I have dynamic tabs which can be added via the add icon in the tabbar. The tabs can also be closed, i.e. removed from the tabbar. Now if the user removes/closes the last tab there is obviously no tab left to render. In this case I want to render custom content, e.g. an empty component or a hint text.
What does the proposed API look like?
the nz-tabs component could support a nzEmptyContent property accepting a string or TemplateRef or there could be a nz-tab property nzEmptyTab.