forked from PolymerElements/paper-input
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpaper-input-addon-behavior.d.ts
34 lines (29 loc) · 1.02 KB
/
paper-input-addon-behavior.d.ts
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
/**
* 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):
* paper-input-addon-behavior.html
*/
/// <reference path="../polymer/types/polymer.d.ts" />
declare namespace Polymer {
/**
* Use `Polymer.PaperInputAddonBehavior` to implement an add-on for `<paper-input-container>`. A
* add-on appears below the input, and may display information based on the input value and
* validity such as a character counter or an error message.
*/
interface PaperInputAddonBehavior {
attached(): void;
/**
* The function called by `<paper-input-container>` when the input value or validity changes.
*
* @param state inputElement: The input element.
* value: The input value.
* invalid: True if the input value is invalid.
*/
update(state: {invalid: boolean, inputElement?: Element|null, value?: string}): void;
}
const PaperInputAddonBehavior: object;
}