Search code examples
jquerydynatree

Right to left setting in dynatree


how to change Right to left setting in

dynatree ?

 <div id="tree" style="text-align:right;"></div>

i use text-align but all nodes show in right of page. like this: my tree


Solution

  • I found My Answer:

     onPostInit: function () {
                    // Set RTL attribute on init
                    this.$tree.find("ul.dynatree-container").attr("DIR", "RTL").addClass("dynatree-rtl");
                }