JavaScript
{grid.object}animateToggle Method
Syntax
{grid.Object}.animateToggle(ele ,animationObject )
Arguments
- ele
The element that you want to toggle using animation
- animationObject
The type of animation to use on the element, slide is the default.
Description
Allows you to show/hide an element on the page.
Discussion
If the element is currently hidden, it is shown, and vice versa. When the element is shown/hidden, it is animated. If the second argument is blank, the default animation style is 'slide' and the duration is 200 milliseconds. The animationObject can have an optional property called 'onComplete' which is a callback function to execute when the animation is complete.
See Also