src/comps/ng-menu/ng-menu-item.ts
Compbaser
changeDetection | ChangeDetectionStrategy.OnPush |
selector | ng-menu-item |
template |
|
fontawesome
|
Type: |
Defined in src/comps/ng-menu/ng-menu-item.ts:19
|
name
|
Type: |
Defined in src/comps/ng-menu/ng-menu-item.ts:21
|
title
|
Type: |
Defined in src/comps/ng-menu/ng-menu-item.ts:20
|
constructor(ngMenu: NgMenu)
|
Defined in src/comps/ng-menu/ng-menu-item.ts:12
|
ngOnInit |
ngOnInit()
|
Defined in src/comps/ng-menu/ng-menu-item.ts:36
|
Returns :
void
|
destroy |
destroy()
|
Defined in src/comps/ng-menu/ng-menu-item.ts:39
|
Returns :
void
|
getFontAwesome |
getFontAwesome: |
Defined in src/comps/ng-menu/ng-menu-item.ts:31
|
getName |
getName: |
Defined in src/comps/ng-menu/ng-menu-item.ts:27
|
getTitle |
getTitle: |
Defined in src/comps/ng-menu/ng-menu-item.ts:23
|
import {Component, ChangeDetectionStrategy, Input} from "@angular/core";
import {NgMenu} from "./ng-menu";
import {Compbaser} from "ng-mslib";
@Component({
selector: 'ng-menu-item',
changeDetection: ChangeDetectionStrategy.OnPush,
template: `
`,
})
export class NgMenuItem extends Compbaser {
constructor(private ngMenu:NgMenu) {
super();
this.ngMenu.addMenuItem(this);
}
@Input() fontawesome:string;
@Input() title:string;
@Input() name:string;
get getTitle(): string {
return this.title;
}
get getName(): string {
return this.name;
}
get getFontAwesome(): string {
return this.fontawesome;
}
ngOnInit() {
}
destroy() {
}
}