PanelBarComponent
Represents the Kendo UI PanelBar component for Angular. Displays hierarchical data as an expandable and collapsible accordion-style interface (see overview).
@Component({
selector: 'my-app',
template: `
<kendo-panelbar [items]="items" expandMode="single">
</kendo-panelbar>
`
})
class AppComponent {
items = [
{ title: 'Item 1', expanded: true, content: 'Content 1' },
{ title: 'Item 2', content: 'Content 2' }
];
}
Selector
kendo-panelbar
Export Name
Accessible in templates as #kendoPanelBarInstance="kendoPanelbar"
Inputs
Name | Type | Default | Description |
---|---|---|---|
animate |
|
|
Sets the animate state of the PanelBar (see example). |
expandMode |
|
|
Sets the expand mode of the PanelBar through the |
height |
|
|
Sets the height of the component when the |
items |
|
Sets the items of the PanelBar as an array of | |
keepItemContent |
|
|
When set to |
selectable |
|
|
Allows the PanelBar to modify the selected state of the items. |
Events
Name | Type | Description |
---|---|---|
collapse |
|
Fires when an item is about to be collapsed. This event is preventable. If you cancel it, the item will remain expanded (see example). |
expand |
|
Fires when an item is about to be expanded. This event is preventable. If you cancel it, the item will remain collapsed (see example). |
itemClick |
|
Fires when an item is clicked (see example). |
select |
|
Fires when an item is about to be selected. This event is preventable. If you cancel it, the item will not be selected (see example). |
stateChange |
|
Fires when the state of the PanelBar changes. This event is triggered when an item is selected, expanded, or collapsed. (see example). The event data contains a collection of all items that are modified. |