Unpoly allows you to stack multiple pages on top of each other. Each stack element is called a layer.
The kind of layer (e.g. a modal dialog vs. a popup box) is called mode.
The initial page is called the root layer. An overlay is any layer that is not the root layer.
The mode of the initial page is root
.
For overlays, the following modes are available:
Mode | Description |
---|---|
modal |
A modal dialog box |
drawer |
A drawer sliding in from the side |
popup |
A popup menu anchored to a link |
cover |
An overlay covering the entire screen |
When opening an overlay, you can pass an mode for the new overlay:
<a href="/users/new/" up-layer="new drawer">
When no explicit mode is given, a modal
overlay is opened. You can change this in up.layer.config.mode
.
You may configure default attributes for each layer mode in up.layer.config
.