[Cronet] Delay StartNetLog and StopNetLog until native request context is initialized
[chromium-blink-merge.git] / third_party / polymer / components-chromium / paper-dropdown-menu / paper-dropdown-menu-extracted.js
blobc74966ad7eeedcb8afa677824df901f20042da9c
3 (function() {
5 var p = {
7 publish: {
9 /**
10 * A label for the control. The label is displayed if no item is selected.
12 * @attribute label
13 * @type string
14 * @default 'Select an item'
16 label: 'Select an item',
18 /**
19 * The icon to display when the drop-down is opened.
21 * @attribute openedIcon
22 * @type string
23 * @default 'arrow-drop-up'
25 openedIcon: 'arrow-drop-up',
27 /**
28 * The icon to display when the drop-down is closed.
30 * @attribute closedIcon
31 * @type string
32 * @default 'arrow-drop-down'
34 closedIcon: 'arrow-drop-down'
38 selectedItemLabel: '',
40 overlayListeners: {
41 'core-overlay-open': 'openAction',
42 'core-activate': 'activateAction',
43 'core-select': 'selectAction'
46 activateAction: function(e) {
47 this.opened = false;
50 selectAction: function(e) {
51 var detail = e.detail;
52 if (detail.isSelected) {
53 this.selectedItemLabel = detail.item.label || detail.item.textContent;
54 } else {
55 this.selectedItemLabel = '';
61 Polymer.mixin2(p, Polymer.CoreFocusable);
62 Polymer('paper-dropdown-menu',p);
64 })();