Node: Showing and Hiding
This example shows how to show and hide Node
instances.
lorem ipsum dolor sit
Showing a Node
By default, Node instances are hidden using the CSS display
property. Calling the show
method displays the node.
Y.one('#demo').show();
Y.one('#demo').show();
Hiding a Node
The opposite of show
, the hide
method sets the node's CSS display
property to none
.
Y.one('#demo').hide();
Y.one('#demo').hide();