Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / polymer / components-chromium / paper-item / paper-item-extracted.js
1
2     Polymer('paper-item', {
3
4       publish: {
5
6         /**
7          * The label for the item.
8          *
9          * @attribute label
10          * @type string
11          * @default ''
12          */
13         label: '',
14
15         /**
16          * (optional) The URL of an image for an icon to use in the button.
17          * Should not use `icon` property if you are using this property.
18          *
19          * @attribute iconSrc
20          * @type string
21          * @default ''
22          */
23         iconSrc: '',
24
25         /**
26          * (optional) Specifies the icon name or index in the set of icons
27          * available in the icon set. If using this property, load the icon
28          * set separately where the icon is used. Should not use `src`
29          * if you are using this property.
30          *
31          * @attribute icon
32          * @type string
33          * @default ''
34          */
35         icon: ''
36
37       },
38
39       eventDelegates: {
40         'down': 'downAction',
41         'up': 'upAction'
42       },
43
44       downAction: function(e) {
45         this.$.ripple.downAction(e);
46       },
47
48       upAction: function(e) {
49         this.$.ripple.upAction(e);
50       }
51     });
52