fix sync status display
This commit is contained in:
parent
a07e6b59a3
commit
94a5cf7549
26 changed files with 415 additions and 276 deletions
|
@ -28,7 +28,8 @@ intent. Closing generally implies that the user acknowledged the content on the
|
|||
it will cancel whenever the user taps outside it or presses the escape key. This behavior is
|
||||
configurable with the `no-cancel-on-esc-key` and the `no-cancel-on-outside-click` properties.
|
||||
`close()` should be called explicitly by the implementer when the user interacts with a control
|
||||
in the overlay element.
|
||||
in the overlay element. When the dialog is canceled, the overlay fires an 'iron-overlay-canceled'
|
||||
event. Call `preventDefault` on this event to prevent the overlay from closing.
|
||||
|
||||
### Positioning
|
||||
|
||||
|
@ -199,6 +200,11 @@ context. You should place this element as a child of `<body>` whenever possible.
|
|||
* Cancels the overlay.
|
||||
*/
|
||||
cancel: function() {
|
||||
var cancelEvent = this.fire('iron-overlay-canceled', undefined, {cancelable: true});
|
||||
if (cancelEvent.defaultPrevented) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.opened = false;
|
||||
this._setCanceled(true);
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue