TreeView - Animation effects


Animation Options

Effects
Show effects:
Hide effects:
Duration:ms

About this example


This demo shows how to configure DJME TreeView extension to animate the content of its items. The supported hide and show effects that you can find all of them in DNA.Mvc.jQuery.jQueryEffects enumeration.
  • To configure the hide effect animation use the HideEffect property.
  • To configure the animation duration use the Duration property
  • To configure the show effect animation use the ShowEffect property.

   <% 
            Ajax.Dna().TreeView()
                .Options(opts => {
                    opts.Duration = 200;
                    opts.ShowEffect = jQueryEffects.Blind;
                    opts.HideEffect = jQueryEffects.Drop;
                })
                .Items(items=>{ /* items definition */})
                .Render();
   %>