ng-zorro-antd
Version:
An enterprise-class UI components based on Ant Design and Angular
42 lines (41 loc) • 1.82 kB
TypeScript
/**
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
import { EventEmitter, InjectionToken, OnChanges, OnDestroy, SimpleChanges, TemplateRef } from '@angular/core';
import { TabTemplateContext } from './interfaces';
import { Subject } from 'rxjs';
import { BooleanInput, NzSafeAny } from 'ng-zorro-antd/core/types';
import { NzTabLinkDirective, NzTabLinkTemplateDirective } from './tab-link.directive';
/**
* Used to provide a tab set to a tab without causing a circular dependency.
*/
export declare const NZ_TAB_SET: InjectionToken<any>;
export declare class NzTabComponent implements OnChanges, OnDestroy {
closestTabSet: NzSafeAny;
static ngAcceptInputType_nzDisabled: BooleanInput;
static ngAcceptInputType_nzClosable: BooleanInput;
static ngAcceptInputType_nzForceRender: BooleanInput;
nzTitle: string | TemplateRef<TabTemplateContext>;
nzClosable: boolean;
nzCloseIcon: string | TemplateRef<NzSafeAny>;
nzDisabled: boolean;
nzForceRender: boolean;
readonly nzSelect: EventEmitter<void>;
readonly nzDeselect: EventEmitter<void>;
readonly nzClick: EventEmitter<void>;
readonly nzContextmenu: EventEmitter<MouseEvent>;
nzTabLinkTemplateDirective: NzTabLinkTemplateDirective;
template: TemplateRef<void> | null;
linkDirective: NzTabLinkDirective;
contentTemplate: TemplateRef<NzSafeAny>;
isActive: boolean;
position: number | null;
origin: number | null;
readonly stateChanges: Subject<void>;
get content(): TemplateRef<NzSafeAny>;
get label(): string | TemplateRef<NzSafeAny>;
constructor(closestTabSet: NzSafeAny);
ngOnChanges(changes: SimpleChanges): void;
ngOnDestroy(): void;
}