OLD | NEW |
1 | |
2 | |
3 /** | 1 /** |
4 Use `Polymer.PaperDialogBehavior` and `paper-dialog-common.css` to implement a M
aterial Design | 2 Use `Polymer.PaperDialogBehavior` and `paper-dialog-common.css` to implement a M
aterial Design |
5 dialog. | 3 dialog. |
6 | 4 |
7 For example, if `<paper-dialog-impl>` implements this behavior: | 5 For example, if `<paper-dialog-impl>` implements this behavior: |
8 | 6 |
9 <paper-dialog-impl> | 7 <paper-dialog-impl> |
10 <h2>Header</h2> | 8 <h2>Header</h2> |
11 <div>Dialog body</div> | 9 <div>Dialog body</div> |
12 <div class="buttons"> | 10 <div class="buttons"> |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 this._lastFocusedElement.focus(); | 211 this._lastFocusedElement.focus(); |
214 } else { | 212 } else { |
215 this._focusNode.focus(); | 213 this._focusNode.focus(); |
216 } | 214 } |
217 } | 215 } |
218 } | 216 } |
219 | 217 |
220 }; | 218 }; |
221 | 219 |
222 /** @polymerBehavior */ | 220 /** @polymerBehavior */ |
223 Polymer.PaperDialogBehavior = [Polymer.IronOverlayBehavior, Polymer.PaperDialo
gBehaviorImpl]; | 221 Polymer.PaperDialogBehavior = [Polymer.IronOverlayBehavior, Polymer.PaperDialo
gBehaviorImpl]; |
224 | |
OLD | NEW |