UNPKG

@blox/material

Version:

Material Components for Angular

51 lines (50 loc) 1.96 kB
import { AfterContentInit, ElementRef, OnDestroy, Renderer2 } from '@angular/core'; import { AbstractMdcRipple } from '../ripple/abstract.mdc.ripple'; import { MdcEventRegistry } from '../../utils/mdc.event.registry'; /** * Directive for the icon of a Floating Action Button * (`mdcFab`). */ export declare class MdcFabIconDirective { readonly _cls = true; } /** * Directive for the label of an extended Floating Action Button * (`mdcFab`). The label may be placed before or after the icon. * It is also possible to only have a label for an extended Floating Action * Button. */ export declare class MdcFabLabelDirective { readonly _cls = true; } /** * Material design Floating Action Button. The element should embed * an icon element with the `mdcFabIcon`, or (to make it an extended floating action button) * a label with the `mdcFabLabel` directive. Extended floating actions button may (in addition * to the label) also add an `mdcFabIcon` before or after the label. */ export declare class MdcFabDirective extends AbstractMdcRipple implements AfterContentInit, OnDestroy { _elm: ElementRef; private _mini; private _exited; constructor(_elm: ElementRef, renderer: Renderer2, registry: MdcEventRegistry, doc: any); ngAfterContentInit(): void; ngOnDestroy(): void; /** * When this input is defined and does not have value false, the FAB will * be modified to a smaller size. */ get mini(): boolean; set mini(val: boolean); static ngAcceptInputType_mini: boolean | ''; /** @docs-private */ get extended(): boolean; /** * Setting this property to true will animate the FAB out of view. * Setting it to false will animate the FAB back into view. */ get exited(): boolean; set exited(val: boolean); static ngAcceptInputType_exited: boolean | ''; } export declare const FAB_DIRECTIVES: (typeof MdcFabIconDirective | typeof MdcFabDirective)[];