makes the component visible
node | HTMLElement | html element where the popup is shown |
position | object | optional, object that may contain pos, x and y properties (see details) |
point | string | optional, the popup pointer (arrow) direction ("top", "left", "right", "bottom") |
//specifying an HTML node near which a window will be shown
$$("window").show(node);
// placing the window above the node
$$("window").show(node, {pos:"top"});
// setting the window's position
$$("window"). show({
x:300, //left offset from the right side
y:50 //top offset
});
The properties of the position object are:
Position object may be passed as the first argument instead of node.
This method helps showing the views that were hidden before:
The same effect as show() can be achieved if you set the hidden parameter in the view constructor to the true value.
Performance tip
With standard views (not windows) you can use an alternative to the hide, show api, namely the ui.multiview functionality to switch between views.