button-radio-group.directive.d.ts 657 B

123456789101112131415161718
  1. import { ChangeDetectorRef, Provider } from '@angular/core';
  2. import { ControlValueAccessor } from '@angular/forms';
  3. export declare const RADIO_CONTROL_VALUE_ACCESSOR: Provider;
  4. /**
  5. * A group of radio buttons.
  6. * A value of a selected button is bound to a variable specified via ngModel.
  7. */
  8. export declare class ButtonRadioGroupDirective implements ControlValueAccessor {
  9. private cdr;
  10. onChange: Function;
  11. onTouched: Function;
  12. value: string | null;
  13. private _value;
  14. constructor(cdr: ChangeDetectorRef);
  15. writeValue(value: string | null): void;
  16. registerOnChange(fn: () => {}): void;
  17. registerOnTouched(fn: () => {}): void;
  18. }