mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
1.0 KiB
1.0 KiB
Accordion Component
Creates an accordion menu, optionally with a custom header and icon.
Basic Usage
<adf-accordion>
<adf-accordion-group [heading]="titleHeading" [isSelected]="true" [headingIcon]="'assignment'">
<my-list></my-list>
</adf-accordion-group>
</adf-accordion>
@Component({
selector: 'my-component'
})
export class MyComponent implements OnInit {
titleHeading: string;
constructor() {
this.titleHeading = 'My Group';
}
}
Properties
Name | Type | Description |
---|---|---|
heading | string | The header title. |
isSelected | boolean | Define if the accordion group is selected or not. |
headingIcon | string | The material design icon. |
hasAccordionIcon | boolean | Define if the accordion (expand) icon needs to be shown or not, the default value is true |