src/lib/tabs/tab.component.ts
selector | plex-tab |
template | <ng-content *ngIf='active'></ng-content> |
active
|
Type: |
allowClose
|
Type: |
color
|
Default value: |
icon
|
Type: |
label
|
Type: |
toggle
|
$event type: EventEmitter
|
import { Component, Input, Output, EventEmitter } from '@angular/core';
@Component({
selector: 'plex-tab',
template: `<ng-content *ngIf='active'></ng-content>`,
})
export class PlexTabComponent {
@Input() label: string;
@Input() icon: string;
@Input() active: boolean;
@Input() allowClose: boolean;
@Input() color = 'default';
@Output() toggle = new EventEmitter<boolean>();
}