projects/rebirth-ng/src/lib/menu-bar/menu-bar.model.ts
Properties |
children |
children:
|
Type : MenuItem[]
|
Optional |
cssClass |
cssClass:
|
Type : string
|
Optional |
divider |
divider:
|
Type : boolean
|
Optional |
handler |
handler:
|
Type : function
|
Optional |
header |
header:
|
Type : boolean
|
Optional |
icon |
icon:
|
Type : string
|
Optional |
id |
id:
|
Type : string | number
|
Optional |
itemTemplate |
itemTemplate:
|
Type : TemplateRef<any>
|
Optional |
queryParams |
queryParams:
|
Type : any
|
Optional |
router |
router:
|
Type : any[]
|
Optional |
target |
target:
|
Type : "_blank" | "_self" | "_parent" | "_top" | any
|
Optional |
text |
text:
|
Type : string
|
Optional |
url |
url:
|
Type : string
|
Optional |
import { TemplateRef } from '@angular/core';
export interface MenuItem {
id?: string | number;
text?: string;
icon?: string;
url?: string;
router?: any[];
queryParams?: any;
handler?: (item: MenuItem) => void;
itemTemplate?: TemplateRef<any>;
target?: '_blank' | '_self' | '_parent' | '_top' | any;
divider?: boolean;
header?: boolean;
cssClass?: string;
children?: MenuItem[];
}
export interface MenuBar {
logo?: string;
title?: string;
home?: string | any[];
homeQueryParams?: any;
menus?: MenuItem[];
rightMenus?: MenuItem[];
}