up.Layer up.Layer.prototype.peel([options])
Instance method

Dismisses all descendant overlays, making this layer the frontmost layer in the layer stack.

Descendant overlays will be dismissed with value ':peel'.

Listeners to up:layer:dismiss or up:layer:accept cannot keep a descendant overlay open.


Closing

[options.value=":peel"]
optional

The result value for the descendant overlays.

Type: any
[options.intent="dismiss"]
optional

The close intent for the descendant overlays.

By default descendant overlays will be dismissed.
You can pass { intent: "accept" } to accept them instead.

Type: string

Animation

[options.animation]
optional

The animation to use for closing descendant overlays.

Defaults to the close animation configured for the respective layer modes.

Type: string | Function(Element, Object)
[options.duration]
optional

The duration for the close animation in milliseconds.

Type: number
[options.easing]
optional

The timing function that controls the acceleration of the close animation.

Type: string