Skip to content

Empty Tab customization #9311

@sroettering

Description

@sroettering

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions