jQuery EasyUI API 中文文档 Tree树使用介绍

2020-05-18 09:00:14易采站长站整理

onDrop



target, source, point



当节点被拖拽施放时触发。
target:DOM 对象,拖放的目标节点。
source:源节点。
point:表示拖放操作,可能是值是: ‘append’、’top’ 或 ‘bottom’。




onBeforeEdit



node



编辑节点前触发。




onAfterEdit



node



编辑节点后触发。




onCancelEdit



node



当取消编辑动作时触发。


方法








































名称


参数


说明


options


none


返回树的 options。


loadData


data


加载树的数据。


getNode


target


获取指定的节点对象。


getData


target


获取指定的节点数据,包括它的子节点。


reload


target


重新加载树的数据。


getRoot


none


获取根节点,返回节点对象。


getRoots


none


获取根节点们,返回节点数组。


getParent


target


获取父节点, target 参数指节点的 DOM 对象。