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

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

Issue 2958153002: MD-Settings: Don't use title as a property because it's overloaded. (Closed)
Patch Set: Created 3 years, 5 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
« no previous file with comments | « ui/webui/resources/cr_elements/cr_drawer/cr_drawer.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 Polymer({ 5 Polymer({
6 is: 'cr-drawer', 6 is: 'cr-drawer',
7 extends: 'dialog', 7 extends: 'dialog',
8 8
9 properties: { 9 properties: {
10 title: String, 10 heading: String,
11 11
12 /** Enables notifications for |Dialog.open|. */ 12 /** Enables notifications for |Dialog.open|. */
13 open: { 13 open: {
14 type: Boolean, 14 type: Boolean,
15 notify: true, 15 notify: true,
16 }, 16 },
17 17
18 /** The alignment of the drawer on the screen ('left' or 'right'). */ 18 /** The alignment of the drawer on the screen ('left' or 'right'). */
19 align: { 19 align: {
20 type: String, 20 type: String,
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 * Closes the dialog when the closing animation is over. 85 * Closes the dialog when the closing animation is over.
86 * @private 86 * @private
87 */ 87 */
88 onDialogTransitionEnd_: function() { 88 onDialogTransitionEnd_: function() {
89 if (this.classList.contains('closing')) { 89 if (this.classList.contains('closing')) {
90 this.classList.remove('closing'); 90 this.classList.remove('closing');
91 this.close(); 91 this.close();
92 } 92 }
93 }, 93 },
94 }); 94 });
OLDNEW
« no previous file with comments | « ui/webui/resources/cr_elements/cr_drawer/cr_drawer.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698