UNPKG

@blox/material

Version:

Material Components for Angular

47 lines (46 loc) 1.91 kB
import { AfterContentInit, ElementRef, OnDestroy, Renderer2 } from '@angular/core'; import { NgControl } from '@angular/forms'; import { AbstractMdcRipple } from '../ripple/abstract.mdc.ripple'; import { AbstractMdcInput } from '../abstract/abstract.mdc.input'; import { MdcEventRegistry } from '../../utils/mdc.event.registry'; /** * Directive for the input element of an <code>MdcRadioDirective</code>. */ export declare class MdcRadioInputDirective extends AbstractMdcInput { _elm: ElementRef; _cntr: NgControl; private _id; private _disabled; constructor(_elm: ElementRef, _cntr: NgControl); /** @docs-private */ get id(): string | null; set id(value: string | null); /** @docs-private */ get disabled(): boolean; set disabled(value: boolean); static ngAcceptInputType_disabled: boolean | ''; } /** * Directive for creating a Material Design radio button. The radio button is driven by an * underlying native radio input, which must use the <code>MdcRadioInputDirective</code> * directive. * The current implementation will add all other required DOM elements (such as the * background). * Future implementations will also support supplying (customized) background * elements. * * This directive can be used together with an <code>mdcFormField</code> to * easily position radio buttons and their labels, see * <a href="/components/form-field">mdcFormField</a>. */ export declare class MdcRadioDirective extends AbstractMdcRipple implements AfterContentInit, OnDestroy { private renderer; private root; private mdcAdapter; private foundation; constructor(renderer: Renderer2, root: ElementRef, registry: MdcEventRegistry, doc: any); ngAfterContentInit(): void; ngOnDestroy(): void; private addBackground; } export declare const RADIO_DIRECTIVES: (typeof MdcRadioInputDirective | typeof MdcRadioDirective)[];