alfresco-ng2-components/docs/core/components/info-drawer-tab.component.md
Francesco Corti 5a4cc4edda
Release Note for 4.2 - Initial draft. (#6390)
* Release Note for 4.2 - Initial draft.

* update dep

* documentation

* fix

* remove script

* lint

Co-authored-by: Eugenio Romano <eugenio.romano@alfresco.com>
Co-authored-by: Eugenio Romano <eromano@users.noreply.github.com>
2020-12-07 21:03:41 +00:00

69 lines
1.5 KiB
Markdown

---
Title: Info Drawer Tab component
Added: v2.4.0
Status: Active
Last reviewed: 2018-06-08
---
# [Info Drawer Tab component](../../../lib/core/info-drawer/info-drawer.component.ts "Defined in info-drawer.component.ts")
Renders tabs in a [Info drawer component](info-drawer.component.md).
![Info drawer screenshot](../../docassets/images/label-tab.png)
## Basic usage
Render a tab with label:
```html
<adf-info-drawer>
<adf-info-drawer-tab label="Tab1">
<div>Tab1 content</div>
</adf-info-drawer-tab>
<adf-info-drawer-tab label="Tab2">
<div>Tab2 content</div>
</adf-info-drawer-tab>
</adf-info-drawer>
```
Render tab with icons instead of labels:
```html
<adf-info-drawer>
<adf-info-drawer-tab icon="comment">
<div>Tab1 content</div>
</adf-info-drawer-tab>
<adf-info-drawer-tab icon="people">
<div>Tab2 content</div>
</adf-info-drawer-tab>
</adf-info-drawer>
```
![Info drawer screenshot](../../docassets/images/icon-tab.png)
You can also combine `icon` and `label` properties.
## Class members
### Properties
| Name | Type | Default value | Description |
| --- | --- | --- | --- |
| icon | `string` | null | Icon to render for the tab. |
| label | `string` | "" | The title of the tab (string or translation key). |
## Details
See the [Info drawer component](info-drawer.component.md) page for details of how to use this subcomponent.
## See also
* [Info drawer component](info-drawer.component.md)
* [Info drawer layout component](info-drawer-layout.component.md)