Wijmo UI for the Web
collapseAnimation Field

Type: wijmo.tree.wijtree_animation

The collapseAnimation option determines the animation effect, easing, and duration for hiding child nodes when the parent node is collapsed.

Syntax
Javascript (Usage) 
var value; // Type: wijtree_animation
value = jQuery.wijmo.wijtree.options.collapseAnimation;
Javascript (Specification) 
var collapseAnimation : wijtree_animation;
Example
<script id="scriptInit" type="text/javascript">
    $(document).ready(function () {
        $("#tree").wijtree({
            collapseAnimation:{
                effect: "shake", 
                duration: 1000,
                easing: "easeOutBounce"
            },
            expandAnimation:{
                effect: "fold", 
                duration: 1000,
                easing: "easeInBounce"
            }
        });
    });
</script>
Remarks
See effect for information on the animation effects that you can apply.
Browser Compatibility
7
5
5

See Also

Reference

options type
collapseAnimation Option
expandAnimation Option

Concepts

Animation

 

 


© 2013 All Rights Reserved.

Send comments on this topic.