1
|
/**
|
2
|
* @license
|
3
|
* Copyright Google Inc. All Rights Reserved.
|
4
|
*
|
5
|
* Use of this source code is governed by an MIT-style license that can be
|
6
|
* found in the LICENSE file at https://angular.io/license
|
7
|
*/
|
8
|
import { ElementRef, Renderer2 } from '@angular/core';
|
9
|
import { ControlValueAccessor } from './control_value_accessor';
|
10
|
export declare const CHECKBOX_VALUE_ACCESSOR: any;
|
11
|
/**
|
12
|
* The accessor for writing a value and listening to changes on a checkbox input element.
|
13
|
*
|
14
|
* ### Example
|
15
|
* ```
|
16
|
* <input type="checkbox" name="rememberLogin" ngModel>
|
17
|
* ```
|
18
|
*
|
19
|
* @stable
|
20
|
*/
|
21
|
export declare class CheckboxControlValueAccessor implements ControlValueAccessor {
|
22
|
private _renderer;
|
23
|
private _elementRef;
|
24
|
onChange: (_: any) => void;
|
25
|
onTouched: () => void;
|
26
|
constructor(_renderer: Renderer2, _elementRef: ElementRef);
|
27
|
writeValue(value: any): void;
|
28
|
registerOnChange(fn: (_: any) => {}): void;
|
29
|
registerOnTouched(fn: () => {}): void;
|
30
|
setDisabledState(isDisabled: boolean): void;
|
31
|
}
|