Edit this page

up.layer up.layer.dismiss([value], [options])
JavaScript function

Dismisses the current layer.

This is a shortcut for up.layer.current.dismiss(). See up.Layer#dismiss() for more documentation.

Closing overlays


Parameters

[value]
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' })
any
[options]