File

src/comps/ng-menu/ng-menu-item.ts

Extends

Compbaser

Metadata

changeDetection ChangeDetectionStrategy.OnPush
selector ng-menu-item
template

Inputs

fontawesome

Type: string

name

Type: string

title

Type: string

Constructor

constructor(ngMenu: NgMenu)

Methods

ngOnInit
ngOnInit()
Returns : void
destroy
destroy()
Returns : void

Properties

getFontAwesome
getFontAwesome: string
getName
getName: string
getTitle
getTitle: string
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() {
    }
}
Legend
Html element
Component
Html element with directive

results matching ""

    No results matching ""