import { Component, EventEmitter, Input, Output } from '@angular/core';

@Component({
    moduleId: module.id,
    selector: 'TopMenuItem',
    templateUrl: './top-menu-item.component.html',
    styleUrls: ['./_top-menu-item.component.scss']
})
export class TopMenuItemComponent {
    @Input() name: string;
    @Input() icon: string;
    @Input() disabled: boolean;
    @Input() column: number;
    @Output() clickItem = new EventEmitter<void>(true);

    onClickItem() {
        this.clickItem.emit();
    }
}
