Edit this page

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'.


Closing

[options.value=":peel"]
optional

The result value for the descendant overlays.

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.

string

Animation

[options.animation]
optional

The animation to use for closing descendant overlays.

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

stringFunction(Element, Object)
[options.duration]
optional

The duration for the close animation in milliseconds.

number
[options.easing]
optional

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

number