jQuery UI Widgets Forums Navigation Tree Animation speed for expandItem and collapseItem

This topic contains 1 reply, has 2 voices, and was last updated by  Dimitar 12 years, 2 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author

  • rfladebo2
    Member

    Hello,

    I was wondering if there is a way to control the animation speed on the expandItem and collapseItem methods for jqxTree?

    We wrote the following function to allow a user to expand a tree item upon hover:

    $(‘.jqx-tree-item-li-nearby’).hover(
    function(){
    $(‘#jqxTree’).jqxTree(‘expandItem’,$(this)[0])
    },
    function(){
    $(‘#jqxTree’).jqxTree(‘collapseItem’,$(this)[0])
    }
    );

    We feel the animation on the expandItem and collapseItem is too fast. Is there a way to slow down the animation?

    Thanks!


    Dimitar
    Participant

    Hello rfladebo2,

    You can control the speed of expandItem and collapseItem by setting the properties animationShowDuration and animationHideDuration. For example:

    $(‘#jqxWidget’).jqxTree({ source: records, width: ‘300px’, theme: theme, animationShowDuration: 1000, animationHideDuration: 1000 });

    Best Regards,
    Dimitar

    jqWidgets team
    http://www.jqwidgets.com/

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.