From ProtoScript
chitrbo
Contents |
YUI:Hide Behavior
Hides the visibility of the element or elements on the page. The space the element or elements occupied (if any) is left blank. Opposite of the Show Behavior.
Example
$proto('img#avatar', {
Click: {
onClick: {
Hide: {}
}
}
});
When the user clicks on the avatar (an image with ID='avatar'), changes it's visibility to 'hidden' (causing it to no longer be shown on the page).
Attributes
| Name | Description | Default | Valid Values | Example |
|---|---|---|---|---|
| target | Selected element or elements to hide. | No value. If no value supplied, use the last targeted element. If value is supplied, use the element(s) selected by the target instead. See Element Scope | String value denoting an interface element. See Selecting Elements | Hide: {} |
Callbacks
| Name | Description |
|---|---|
| onHide | The callback corresponding to the Hide behavior. Fired after the element has been hidden. |
Demos
See Hide Demo
