|
3 | 3 | ## Description
|
4 | 4 | _igx-tabs component allows you to add a tabs component with tab items, positioned at the top, and item content in your application. The tabs in Ignite UI for Angular can be composed with the following components and directives:_
|
5 | 5 |
|
6 |
| -- *igx-tab-item* - single content area that holds header and content components |
| 6 | +- *igx-tab-item* - single content area that holds header and optionally content components |
7 | 7 | - *igx-tab-header* - holds the title and/or icon of the item and you can add them with `igxTabHeaderIcon` and `igxTabHeaderLabel`
|
8 |
| -- *igx-tab-content* - represents the wrapper of the content that needs to be displayed |
| 8 | +- *igx-tab-content* - represents the wrapper of the content that needs to be displayed (optional) |
9 | 9 |
|
10 |
| -Each item (`igx-tab-item`) contains header (`igx-tab-header`) and content (`igx-tab-content`). When a tab is clicked, the associated content is selected and visualized into a single container. There should always be a selected tab. Only one tab can be selected at a time. |
| 10 | +Each item (`igx-tab-item`) contains a header (`igx-tab-header`) and optionally content (`igx-tab-content`). When a tab is clicked, the associated content is selected and visualized into a single container. If a tab has no content, it can still be selected and used for navigation purposes. There should always be a selected tab. Only one tab can be selected at a time. |
11 | 11 | A walkthrough of how to get started can be found [here](https://www.infragistics.com/products/ignite-ui-angular/angular/components/tabs).
|
12 | 12 |
|
13 | 13 | ----------
|
@@ -59,6 +59,33 @@ A walkthrough of how to get started can be found [here](https://www.infragistics
|
59 | 59 | </igx-tab-item>
|
60 | 60 | </igx-tabs>
|
61 | 61 |
|
| 62 | +## Tabs without content (Navigation-only) |
| 63 | + |
| 64 | +For navigation purposes, you can create tabs without content: |
| 65 | + |
| 66 | + <igx-tabs> |
| 67 | + <igx-tab-item> |
| 68 | + <igx-tab-header igxRipple> |
| 69 | + <igx-icon igxTabHeaderIcon>home</igx-icon> |
| 70 | + <span igxTabHeaderLabel>Home</span> |
| 71 | + </igx-tab-header> |
| 72 | + </igx-tab-item> |
| 73 | + |
| 74 | + <igx-tab-item [selected]="true"> |
| 75 | + <igx-tab-header igxRipple> |
| 76 | + <igx-icon igxTabHeaderIcon>info</igx-icon> |
| 77 | + <span igxTabHeaderLabel>About</span> |
| 78 | + </igx-tab-header> |
| 79 | + </igx-tab-item> |
| 80 | + |
| 81 | + <igx-tab-item> |
| 82 | + <igx-tab-header igxRipple> |
| 83 | + <igx-icon igxTabHeaderIcon>contact_page</igx-icon> |
| 84 | + <span igxTabHeaderLabel>Contact</span> |
| 85 | + </igx-tab-header> |
| 86 | + </igx-tab-item> |
| 87 | + </igx-tabs> |
| 88 | + |
62 | 89 |
|
63 | 90 | # API Summary
|
64 | 91 |
|
|
0 commit comments