原創: EasyUI Tree 最后一級 節點 橫向排列
轉載請指明出處
必須要寫在: onLoadSuccess 事件中
ddAuthTree.tree({ lines: true, checkbox: true, cascadeCheck: true, lines: false, url: authTreeUrl, onLoadSuccess:function(node,data){ ddAuthTree.find("ul >li:not(:has(ul))").css('float', 'left'); // 選擇最后一個節點 並添加 float:left ddAuthTree.find("ul >li:has(ul)").css('clear', 'both'); // 給非最后節點添加 clear:both }, onClick: function (node) { } });