Loads content and renders it inside the panel.
load(panel, url, [transition])
panel |
string, name of the panel |
url |
string, server url to load content from |
transition |
string, name of the transition (optional) |
Returns
promise that is resolved when content is loaded.
Description
This method loads content for the panel from the
url. The content should be Text or HTML and should not include JavaScript. The first argument
panel is the name of the panel. It can be one of the following:
- top
- left
- main
- right
- preview
- bottom
The second argument
url is the location to load content from.
You can optionally provide
transition that defines visual transition to the new content.
The transition is done using
w2utils.transition() method and it can be one of the following:
- slide-left
- slide-right
- slide-up
- slide-down
- flip-left
- flip-right
- flip-up
- flip-down
- pop-in
- pop-out
Below is an example how to set content to the layout panel: