UNPKG

md-tabs

Version:
107 lines (106 loc) 2.43 kB
import { AfterContentInit, ElementRef, EventEmitter, QueryList, TemplateRef } from '@angular/core'; export declare class MdTabChangeEvent { index: number; tab: MdTab; } export declare class MdTabLabel { templateRef: TemplateRef<any>; constructor(templateRef: TemplateRef<any>); } export declare class MdTab { tabLabel: MdTabLabel; label: string; active: boolean; disabled: boolean; mdClass: string; readonly labelTemplate: TemplateRef<any>; } export declare class MdTabs implements AfterContentInit { private elementRef; tabs: QueryList<MdTab>; private _isInitialized; private _focusIndex; private _selectedIndex; private shouldPaginate; private offsetLeft; private inkBarLeft; private inkBarWidth; mdClass: string; selectedIndex: any; focusIndex: number; readonly element: any; change: EventEmitter<MdTabChangeEvent>; constructor(elementRef: ElementRef); /** * After Content Init */ ngAfterContentInit(): void; /** * Calculates the styles from the selected tab for the ink-bar. */ private _updateInkBar(); /** * Create Change Event * @param index * @return event of MdTabChangeEvent */ private _createChangeEvent(index); /** * Focus next Tab */ focusNextTab(): void; /** * Focus previous Tab */ focusPreviousTab(): void; /** * Mouse Wheel scroll * @param event */ scroll(event: any): void; /** * Next Page */ nextPage(): void; /** * Previous Page */ previousPage(): void; /** * On Window Resize * @param event */ onWindowResize(event: Event): void; /** * Can page Back */ canPageBack(): boolean; /** * Can page Previous */ canPageForward(): boolean; /** * Update Pagination */ updatePagination(): void; /** * Increment Focus Tab * @param inc */ incrementIndex(inc: any): void; /** * Adjust Offset of Tab * @param index */ adjustOffset(index: number): void; /** * Fix Offset of Tab * @param value * @return value */ fixOffset(value: any): any; } export declare const TABS_DIRECTIVES: (typeof MdTabs | typeof MdTab | typeof MdTabLabel)[]; export declare const MD_TABS_DIRECTIVES: any[]; export declare class MdTabsModule { }