summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/catapult/third_party/polymer2/bower_components/paper-icon-button/paper-icon-button-light.d.ts
blob: 49271d7dc49e6198d5b72b79909d7fbb61d07f83 (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
/**
 * 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-icon-button-light.html
 */

/// <reference path="../polymer/types/polymer.d.ts" />
/// <reference path="../paper-behaviors/paper-ripple-behavior.d.ts" />

/**
 * This is a lighter version of `paper-icon-button`. Its goal is performance, not
 * developer ergonomics, so as a result it has fewer features than `paper-icon-button`
 * itself. To use it, you must distribute a `button` containing the `iron-icon` you
 * want to use:
 *
 * <link rel="import" href="../iron-icon/iron-icon.html">
 * <link rel="import" href="../paper-icon-button/paper-icon-button-light.html">
 * <link rel="import" href="../iron-icons/iron-icons.html">
 *
 * <paper-icon-button-light>
 *   <button title="heart">
 *     <iron-icon icon="favorite"></iron-icon>
 *   </button>
 * </paper-icon-button-light>
 *
 * Note that this button is assumed to be distributed at the startup of
 * `paper-icon-button-light`. Dynamically adding a `button` to this element is
 * not supported.
 *
 * The `title`/`disabled` etc. attributes go on the distributed button, not on the wrapper.
 *
 * The following custom properties and mixins are also available for styling:
 * Custom property | Description | Default
 * ----------------|-------------|----------
 * `--paper-icon-button-light-ripple` | Mixin applied to the paper ripple | `{}`
 */
interface PaperIconButtonLightElement extends Polymer.Element, Polymer.PaperRippleBehavior {
  ensureRipple(...var_args: any[]): void;
  ready(): void;
  _rippleDown(): void;
  _rippleUp(): void;
}

interface HTMLElementTagNameMap {
  "paper-icon-button-light": PaperIconButtonLightElement;
}