src/ui/menu/smart-accordion-menu/smart-menu.component.ts
A component used for displaying the navigation menu.
AbstractSmartComponent
providers |
SmartMenuStructureService
|
selector | smart-accordion-menu |
styleUrls | ./smart-menu.component.css |
template |
|
Properties |
Methods |
Inputs |
Outputs |
constructor(smartMenuStructureService: SmartMenuStructureService)
|
||||||
Parameters :
|
expanded |
Type : boolean
|
If set to true, will expand the menu on initialization. |
menu-structure-code |
Type : string
|
The structure code that the Smart Menu should use. |
selected-item |
Type : any
|
The currently selected menu item. |
selected-item-changed |
Type : EventEmitter<any>
|
Fires when the menu's selection changes. |
onItemAction | ||||||
onItemAction(event: PanelBarItemModel)
|
||||||
Parameters :
Returns :
void
|
menuItems |
Type : PanelBarItemModel[]
|
Default value : []
|
The loaded menu items. |
panelBar |
Type : PanelBarItemComponent
|
Decorators :
@ViewChild(PanelBarItemComponent)
|
./smart-menu.component.css
::ng-deep .k-panelbar .k-group {
padding-left: 20px !important;
}
::ng-deep .k-panelbar .k-panelbar-collapse,
.k-panelbar .k-panelbar-expand {
padding-left: 15px !important;
right: 15px !important;
}