unicorn-components
Version:
<a target="_blank" href="https://getunicorn.io"><img src="https://bitbucket-assetroot.s3.amazonaws.com/c/photos/2017/Jul/07/2615006260-5-nitsnetsstudios-ondemand-UNI_avatar.png" align="left"></a>
30 lines (20 loc) • 828 B
text/typescript
import { Component, EventEmitter, HostBinding, HostListener, Input, OnChanges, Output } from '@angular/core';
import { UniOption } from '../../../../models/option';
export class UniTabsItemComponent {
componentClass = true;
size: 'small';
selected = false;
label: string;
value: any;
select = new EventEmitter<void>();
get isSmall(): boolean { return this.size === 'small'; }
get tabLabel(): string { return this.label; }
onClick() { this.select.emit(this.value); }
constructor() { }
}