OLD | NEW |
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, |
| 11 |
10 /** Enables notifications for |Dialog.open|. */ | 12 /** Enables notifications for |Dialog.open|. */ |
11 open: { | 13 open: { |
12 type: Boolean, | 14 type: Boolean, |
13 notify: true, | 15 notify: true, |
14 }, | 16 }, |
15 | 17 |
16 /** The alignment of the drawer on the screen ('left' or 'right'). */ | 18 /** The alignment of the drawer on the screen ('left' or 'right'). */ |
17 align: { | 19 align: { |
18 type: String, | 20 type: String, |
19 value: 'left', | 21 value: 'left', |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 * Closes the dialog when the closing animation is over. | 85 * Closes the dialog when the closing animation is over. |
84 * @private | 86 * @private |
85 */ | 87 */ |
86 onDialogTransitionEnd_: function() { | 88 onDialogTransitionEnd_: function() { |
87 if (this.classList.contains('closing')) { | 89 if (this.classList.contains('closing')) { |
88 this.classList.remove('closing'); | 90 this.classList.remove('closing'); |
89 this.close(); | 91 this.close(); |
90 } | 92 } |
91 }, | 93 }, |
92 }); | 94 }); |
OLD | NEW |