File

src/lib/tabs/tab.component.ts

Metadata

selector plex-tab
template <ng-content *ngIf='active'></ng-content>

Inputs

active

Type: boolean

allowClose

Type: boolean

color

Default value: default

icon

Type: string

label

Type: string

Outputs

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>();

}

results matching ""

    No results matching ""