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"]
[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.
[options.duration]
optional
The duration for the close animation in milliseconds.
Type: number
[options.easing]