Edit this page

up.layer a[up-dismiss]
HTML selector

Dismisses the current layer when the link is clicked.

The JSON value of the [up-accept] attribute becomes the overlay's dismissal value.

Example

<a href='/dashboard' up-dismiss>Close</a>

Fallback for the root layer

The link's [href] will only be followed when this link is clicked in the root layer. In an overlay the click event's default action is prevented.

You can also omit the [href] attribute to make a link that only works in overlays.


Modifying attributes

[up-dismiss] optional

The overlay's dismissal value as a JSON string.

[up-confirm] optional

A message the user needs to confirm before the layer is closed.

[up-animation] optional

The name of the overlay's close animation.

Defaults to overlay's preconfigured close animation.

[up-duration] optional

The close animation's duration in milliseconds.

[up-easing] optional

The close animation's easing function.