OLD | NEW |
1 /** | 1 /** |
2 Use `Polymer.IronOverlayBehavior` to implement an element that can be hidden or
shown, and displays | 2 Use `Polymer.IronOverlayBehavior` to implement an element that can be hidden or
shown, and displays |
3 on top of other content. It includes an optional backdrop, and can be used to im
plement a variety | 3 on top of other content. It includes an optional backdrop, and can be used to im
plement a variety |
4 of UI controls including dialogs and drop downs. Multiple overlays may be displa
yed at once. | 4 of UI controls including dialogs and drop downs. Multiple overlays may be displa
yed at once. |
5 | 5 |
6 ### Closing and canceling | 6 ### Closing and canceling |
7 | 7 |
8 A dialog may be hidden by closing or canceling. The difference between close and
cancel is user | 8 A dialog may be hidden by closing or canceling. The difference between close and
cancel is user |
9 intent. Closing generally implies that the user acknowledged the content on the
overlay. By default, | 9 intent. Closing generally implies that the user acknowledged the content on the
overlay. By default, |
10 it will cancel whenever the user taps outside it or presses the escape key. This
behavior is | 10 it will cancel whenever the user taps outside it or presses the escape key. This
behavior is |
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
409 this.refit(); | 409 this.refit(); |
410 } | 410 } |
411 } | 411 } |
412 | 412 |
413 /** | 413 /** |
414 * Fired after the `iron-overlay` opens. | 414 * Fired after the `iron-overlay` opens. |
415 * @event iron-overlay-opened | 415 * @event iron-overlay-opened |
416 */ | 416 */ |
417 | 417 |
418 /** | 418 /** |
| 419 * Fired when the `iron-overlay` is canceled, but before it is closed. |
| 420 * Cancel the event to prevent the `iron-overlay` from closing. |
| 421 * @event iron-overlay-canceled |
| 422 */ |
| 423 |
| 424 /** |
419 * Fired after the `iron-overlay` closes. | 425 * Fired after the `iron-overlay` closes. |
420 * @event iron-overlay-closed | 426 * @event iron-overlay-closed |
421 * @param {{canceled: (boolean|undefined)}} set to the `closingReason` attribute | 427 * @param {{canceled: (boolean|undefined)}} set to the `closingReason` attribute |
422 */ | 428 */ |
423 }; | 429 }; |
424 | 430 |
425 /** @polymerBehavior */ | 431 /** @polymerBehavior */ |
426 Polymer.IronOverlayBehavior = [Polymer.IronFitBehavior, Polymer.IronResizableB
ehavior, Polymer.IronOverlayBehaviorImpl]; | 432 Polymer.IronOverlayBehavior = [Polymer.IronFitBehavior, Polymer.IronResizableB
ehavior, Polymer.IronOverlayBehaviorImpl]; |
OLD | NEW |