projects/rebirth-ng/src/lib/tabs/tab.component.ts
selector | re-tab |
Properties |
Inputs |
disabled
|
Default value: |
id
|
Type: |
title
|
Type: |
contentTpl |
contentTpl:
|
Type : TabContentDirective
|
Decorators : ContentChild
|
titleTpl |
titleTpl:
|
Type : TabTitleDirective
|
Decorators : ContentChild
|
import { Component, Input, ContentChild } from '@angular/core';
import { TabContentDirective } from './tab-content.directive';
import { TabTitleDirective } from './tab-title.directive';
@Component({
selector: 're-tab',
template: ''
})
export class TabComponent {
@Input() id: number |string;
@Input() title: string;
@Input() disabled = false;
@ContentChild(TabContentDirective) contentTpl: TabContentDirective;
@ContentChild(TabTitleDirective) titleTpl: TabTitleDirective;
}