Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1474)

Side by Side Diff: ui/webui/resources/cr_elements/cr_dropdown_menu/cr_dropdown_menu.js

Issue 990473002: Add initial implementation of date-time-settings MD settings page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clean up a couple things Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @fileoverview 6 * @fileoverview
7 * `cr-dropdown-menu` is a Chrome-specific wrapper around paper-dropdown-menu. 7 * `cr-dropdown-menu` is a Chrome-specific wrapper around paper-dropdown-menu.
8 * It includes a paper-dropdown so its content should just be a core-menu and 8 * It includes a paper-dropdown so its content should just be a core-menu and
9 * items. 9 * items.
10 * 10 *
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 */ 42 */
43 label: '<Dropdown Menu Label>', 43 label: '<Dropdown Menu Label>',
44 44
45 /** 45 /**
46 * True if the menu is disabled. 46 * True if the menu is disabled.
47 * 47 *
48 * @attribute disabled 48 * @attribute disabled
49 * @type boolean 49 * @type boolean
50 * @default false 50 * @default false
51 */ 51 */
52 disabled: {value: false, reflected: true}, 52 disabled: {value: false, reflect: true},
53 }, 53 },
54 54
55 /** @override */ 55 /** @override */
56 domReady: function() { 56 domReady: function() {
57 assert( 57 assert(
58 this.querySelector('.menu'), 58 this.querySelector('.menu'),
59 'cr-dropdown-menu must have a menu child with class="menu".'); 59 'cr-dropdown-menu must have a menu child with class="menu".');
60 }, 60 },
61 }); 61 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698