UNPKG

@blox/material

Version:

Material Components for Angular

47 lines (46 loc) 1.92 kB
import { AfterContentInit, ElementRef, OnDestroy, Renderer2 } from '@angular/core'; /** * Child directive for an `mdcTabIndicator`. Must be present, and can be assigned * the value `underline` (default), or `icon`, to set the type of indicator. */ export declare class MdcTabIndicatorContentDirective { _root: ElementRef; constructor(_root: ElementRef); /** * By default the indicator is represented as an underline. Set this value to * `icon` to have it represented as an icon. * You can use SVG, or font icon libraries to set the content icon. */ get mdcTabIndicatorContent(): 'underline' | 'icon'; set mdcTabIndicatorContent(value: 'underline' | 'icon'); static ngAcceptInputType_mdcTabIndicatorContent: 'underline' | 'icon' | ''; get _underline(): boolean; get _icon(): boolean; } /** * Directive for the content (label and optional icon of the tab). * This directive must be used as a child of an `mdcTab`, or `mdcTabRouter`. */ export declare class MdcTabIndicatorDirective implements AfterContentInit, OnDestroy { private rndr; private root; private onDestroy$; private active; private mdcAdapter; private foundation; constructor(rndr: Renderer2, root: ElementRef); ngAfterContentInit(): void; ngOnDestroy(): void; private destroyFoundation; private initFoundation; /** * By default the indicator is a sliding indicator: when another tab is activated, the indicator * animates a slide to the new tab. Set this property `fade` to have a fading animation * instead. */ get mdcTabIndicator(): 'slide' | 'fade'; set mdcTabIndicator(value: 'slide' | 'fade'); static ngAcceptInputType_mdcTabIndicator: 'slide' | 'fade' | ''; private get _content(); } export declare const TAB_INDICATOR_DIRECTIVES: (typeof MdcTabIndicatorContentDirective | typeof MdcTabIndicatorDirective)[];