@angular/material
Version:
Angular Material
51 lines (50 loc) • 2.06 kB
TypeScript
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { TemplatePortal } from '@angular/cdk/portal';
import { OnChanges, OnDestroy, OnInit, SimpleChanges, TemplateRef, ViewContainerRef } from '@angular/core';
import { CanDisable } from '@angular/material/core';
import { Subject } from 'rxjs/Subject';
import { MatTabLabel } from './tab-label';
/** @docs-private */
export declare class MatTabBase {
}
export declare const _MatTabMixinBase: (new (...args: any[]) => CanDisable) & typeof MatTabBase;
export declare class MatTab extends _MatTabMixinBase implements OnInit, CanDisable, OnChanges, OnDestroy {
private _viewContainerRef;
/** Content for the tab label given by <ng-template mat-tab-label>. */
templateLabel: MatTabLabel;
/** Template inside the MatTab view that contains an <ng-content>. */
_content: TemplateRef<any>;
/** The plain text label for the tab, used when there is no template label. */
textLabel: string;
/** The portal that will be the hosted content of the tab */
private _contentPortal;
readonly content: TemplatePortal<any> | null;
/** Emits whenever the label changes. */
_labelChange: Subject<void>;
/** Emits whenevfer the disable changes */
_disableChange: Subject<void>;
/**
* The relatively indexed position where 0 represents the center, negative is left, and positive
* represents the right.
*/
position: number | null;
/**
* The initial relatively index origin of the tab if it was created and selected after there
* was already a selected tab. Provides context of what position the tab should originate from.
*/
origin: number | null;
/**
* Whether the tab is currently active.
*/
isActive: boolean;
constructor(_viewContainerRef: ViewContainerRef);
ngOnChanges(changes: SimpleChanges): void;
ngOnDestroy(): void;
ngOnInit(): void;
}