Edit this page

up.Layer up.Layer.prototype.dismiss([value], [options])
Class method

Closes this overlay without an accepting intent, e.g. when a "Cancel" button was clicked.

To close an overlay with an accepting intent, use up.Layer#accept() instead.


[value] any optional

The dismissal value that will be passed to { onDismissed } callbacks.

If there isn't an acceptance value, omit this argument. If you need to pass options without a dismissal value, pass null:

up.layer.dismiss(null, { animation: 'move-to-bottom' })
[options] Object optional

See options for up.Layer#accept().

Return value

A promise that fulfills when the overlay has been dimissed and its parent layer has become current.

When the promise filfills the dismissed overlay may still be playing its close animation. To run code after the animation has concluded, use { onFinished }.

This website uses cookies to improve usability and analyze traffic.
I accept or learn more