blob: 56f12e1736df0969a02e53be7c78977471496dc1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
/**
* DO NOT EDIT
*
* This file was automatically generated by
* https://github.com/Polymer/gen-typescript-declarations
*
* To modify these typings, edit the source file(s):
* iron-checked-element-behavior.html
*/
/// <reference path="../polymer/types/polymer.d.ts" />
/// <reference path="../iron-validatable-behavior/iron-validatable-behavior.d.ts" />
/// <reference path="../iron-form-element-behavior/iron-form-element-behavior.d.ts" />
declare namespace Polymer {
/**
* Use `Polymer.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 Polymer.IronFormElementBehavior, Polymer.IronValidatableBehavior {
/**
* Overriden from Polymer.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;
}
const IronCheckedElementBehavior: object;
}
|