@blox/material
Version:
Material Components for Angular
41 lines (40 loc) • 1.38 kB
TypeScript
import { AfterContentInit, ElementRef, OnDestroy, Renderer2 } from '@angular/core';
/**
* This directive styles the notch of an `mdcNotchedOutline`. It should wrap the (floating)
* label of an input like `mdcTextField` or `mdcSelect`.
*/
export declare class MdcNotchedOutlineNotchDirective {
_elm: ElementRef;
constructor(_elm: ElementRef);
}
/**
* The notched outline is a border around all sides of either an `mdcTextField` or an
* `mdcSelect`. It should only be used for the outlined variant of these inputs.
* This directive should wrap an `mdcNotchedOutlineNotch`, which in turn wraps the
* actual label.
*/
export declare class MdcNotchedOutlineDirective implements AfterContentInit, OnDestroy {
private rndr;
private root;
private notchWidth;
private mdcAdapter;
private foundation;
constructor(rndr: Renderer2, root: ElementRef);
ngAfterContentInit(): void;
ngOnDestroy(): void;
private initFoundation;
private destroyFoundation;
private addSurround;
private get notch();
/**
* Opens the notched outline.
*
* @param width The width of the notch.
*/
open(width: number): void;
/**
* Closes the notched outline.
*/
close(): void;
}
export declare const NOTCHED_OUTLINE_DIRECTIVES: (typeof MdcNotchedOutlineNotchDirective | typeof MdcNotchedOutlineDirective)[];