我想给我的花式树下面的 maxHeight 和 minHeight 。
$("#tree").fancytree({
checkbox: true,
selectMode: 3,
autoSize: false,
fitToView: false,
minHeight: 300,
maxHeight: 600,
source: {
url: '@Url.Action("GetTerritories1", "Step1")',
dataType: "json",
success:function(data)
{
},
error:function(data, ajaxOptions, thrownError)
{alert(thrownError);}
},
lazyLoad: function(event, data){
// we can't return values from an event handler, so we
// pass the result as `data`attribute.
// alert('lazy call');
data.result = $.ajax({
url: '@Url.Action("GetTerritories1", "Step1")',
data: {mode: "children", nodeid: data.node.key}
});
}
});
});
我已经阅读了文档,但无法确定这是否可行。如果没有,还有其他方法可以做到这一点吗?