alfresco-ng2-components/docs/accordion-group.component.md
2017-09-27 15:21:06 -04:00

1.5 KiB

Accordion Group component

Adds a collapsible panel to an accordion menu.

Accordion menu screenshot

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 Title heading for the group.
isSelected boolean Is this group currently selected?
headingIcon string The material design icon.
hasAccordionIcon boolean Should the (expanded) accordion icon be shown? Defaults to true

Details

Place one or more accordion groups within an Accordion component to define a menu.

See also