mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-2627] Icons-only mode for Info Drawer (#3398)
* tab with icon * docs * test
This commit is contained in:
committed by
Eugenio Romano
parent
fd729e76c0
commit
648ac585b4
51
docs/core/info-drawer-tab.md
Normal file
51
docs/core/info-drawer-tab.md
Normal file
@@ -0,0 +1,51 @@
|
||||
# Info Drawer Tab component
|
||||
|
||||

|
||||
|
||||
## 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 icon instead of labels:
|
||||
|
||||
```html
|
||||
<adf-info-drawer>
|
||||
|
||||
<adf-info-drawer-tab [label]="'Tab1'" icon="comment">
|
||||
<div> Tab1 content</div>
|
||||
</adf-info-drawer-tab>
|
||||
|
||||
<adf-info-drawer-tab [label]="'Tab2'" icon="people">
|
||||
<div> Tab2 content</div>
|
||||
</adf-info-drawer-tab>
|
||||
|
||||
</adf-info-drawer>
|
||||
```
|
||||
|
||||

|
||||
|
||||
## Class members
|
||||
|
||||
### Properties
|
||||
|
||||
| Name | Type | Default value | Description |
|
||||
| -- | -- | -- | -- |
|
||||
| label | `string` | '' | Tab label. |
|
||||
| icon | `string` | null | The material design icon. |
|
||||
|
||||
## See also
|
||||
|
||||
- [Info drawer layout component](info-drawer.component.md)
|
@@ -53,4 +53,5 @@ You can also customize the three regions (title, buttons and content) as with th
|
||||
|
||||
## See also
|
||||
|
||||
- [Info drawer layout component](info-drawer-layout.component.md)
|
||||
- [Info drawer layout component](info-drawer-layout.component.md)
|
||||
- [Info drawer layout component](info-drawer-tab.component.md)
|
||||
|
Reference in New Issue
Block a user