/** * DO NOT EDIT * * This file was automatically generated by * https://github.com/Polymer/tools/tree/master/packages/gen-typescript-declarations * * To modify these typings, edit the source file(s): * iron-checked-element-behavior.js */ import {IronFormElementBehavior} from '@polymer/iron-form-element-behavior/iron-form-element-behavior.js'; import {IronValidatableBehavior} from '@polymer/iron-validatable-behavior/iron-validatable-behavior.js'; /** * Use `IronCheckedElementBehavior` to implement a custom element that has a * `checked` property, which can be used for validation if the element is also * `required`. Element instances implementing this behavior will also be * registered for use in an `iron-form` element. */ interface IronCheckedElementBehavior extends IronFormElementBehavior, IronValidatableBehavior { /** * Overriden from IronFormElementBehavior */ value: string|null|undefined; /** * Gets or sets the state, `true` is checked and `false` is unchecked. */ checked: boolean|null|undefined; /** * If true, the button toggles the active state with each tap or press * of the spacebar. */ toggles: boolean|null|undefined; /** * Returns false if the element is required and not checked, and true * otherwise. * * @param _value Ignored. * @returns true if `required` is false or if `checked` is true. */ _getValidity(_value?: any): boolean; created(): void; /** * Update the aria-required label when `required` is changed. */ _requiredChanged(): void; /** * Fire `iron-changed` when the checked state changes. */ _checkedChanged(): void; /** * Reset value to 'on' if it is set to `undefined`. */ _valueChanged(): void; } declare const IronCheckedElementBehavior: object; export {IronCheckedElementBehavior};