From 21d72c4a80fe2937d0c4ddd20624b27adbcd989b Mon Sep 17 00:00:00 2001 From: lizi00164331 Date: Mon, 7 Aug 2017 11:39:39 +0800 Subject: Upload the ESR GUI seed code Issue-ID: AAI-68 Change-Id: Ia50ce0570c2fabecd77199d4e8454f56fe587c4e Signed-off-by: lizi00164331 --- .../thirdparty/zTree/api/en/fn.zTree._z.html | 13 ++++ .../thirdparty/zTree/api/en/fn.zTree.destroy.html | 28 ++++++++ .../zTree/api/en/fn.zTree.getZTreeObj.html | 25 ++++++++ .../thirdparty/zTree/api/en/fn.zTree.init.html | 75 ++++++++++++++++++++++ .../zTree/api/en/setting.async.autoParam.html | 39 +++++++++++ .../zTree/api/en/setting.async.contentType.html | 29 +++++++++ .../zTree/api/en/setting.async.dataFilter.html | 45 +++++++++++++ .../zTree/api/en/setting.async.dataType.html | 29 +++++++++ .../zTree/api/en/setting.async.enable.html | 30 +++++++++ .../zTree/api/en/setting.async.otherParam.html | 40 ++++++++++++ .../zTree/api/en/setting.async.type.html | 30 +++++++++ .../thirdparty/zTree/api/en/setting.async.url.html | 50 +++++++++++++++ .../zTree/api/en/setting.callback.beforeAsync.html | 35 ++++++++++ .../zTree/api/en/setting.callback.beforeCheck.html | 34 ++++++++++ .../zTree/api/en/setting.callback.beforeClick.html | 49 ++++++++++++++ .../api/en/setting.callback.beforeCollapse.html | 34 ++++++++++ .../api/en/setting.callback.beforeDblClick.html | 36 +++++++++++ .../zTree/api/en/setting.callback.beforeDrag.html | 39 +++++++++++ .../api/en/setting.callback.beforeDragOpen.html | 37 +++++++++++ .../zTree/api/en/setting.callback.beforeDrop.html | 50 +++++++++++++++ .../api/en/setting.callback.beforeEditName.html | 38 +++++++++++ .../api/en/setting.callback.beforeExpand.html | 34 ++++++++++ .../api/en/setting.callback.beforeMouseDown.html | 35 ++++++++++ .../api/en/setting.callback.beforeMouseUp.html | 35 ++++++++++ .../api/en/setting.callback.beforeRemove.html | 37 +++++++++++ .../api/en/setting.callback.beforeRename.html | 46 +++++++++++++ .../api/en/setting.callback.beforeRightClick.html | 35 ++++++++++ .../api/en/setting.callback.onAsyncError.html | 42 ++++++++++++ .../api/en/setting.callback.onAsyncSuccess.html | 38 +++++++++++ .../zTree/api/en/setting.callback.onCheck.html | 34 ++++++++++ .../zTree/api/en/setting.callback.onClick.html | 49 ++++++++++++++ .../zTree/api/en/setting.callback.onCollapse.html | 34 ++++++++++ .../zTree/api/en/setting.callback.onDblClick.html | 35 ++++++++++ .../zTree/api/en/setting.callback.onDrag.html | 34 ++++++++++ .../zTree/api/en/setting.callback.onDragMove.html | 34 ++++++++++ .../zTree/api/en/setting.callback.onDrop.html | 48 ++++++++++++++ .../zTree/api/en/setting.callback.onExpand.html | 34 ++++++++++ .../zTree/api/en/setting.callback.onMouseDown.html | 35 ++++++++++ .../zTree/api/en/setting.callback.onMouseUp.html | 35 ++++++++++ .../api/en/setting.callback.onNodeCreated.html | 35 ++++++++++ .../zTree/api/en/setting.callback.onRemove.html | 34 ++++++++++ .../zTree/api/en/setting.callback.onRename.html | 40 ++++++++++++ .../api/en/setting.callback.onRightClick.html | 36 +++++++++++ .../api/en/setting.check.autoCheckTrigger.html | 29 +++++++++ .../api/en/setting.check.chkDisabledInherit.html | 28 ++++++++ .../zTree/api/en/setting.check.chkStyle.html | 48 ++++++++++++++ .../zTree/api/en/setting.check.chkboxType.html | 31 +++++++++ .../zTree/api/en/setting.check.enable.html | 26 ++++++++ .../zTree/api/en/setting.check.nocheckInherit.html | 28 ++++++++ .../zTree/api/en/setting.check.radioType.html | 29 +++++++++ .../zTree/api/en/setting.data.keep.leaf.html | 28 ++++++++ .../zTree/api/en/setting.data.keep.parent.html | 28 ++++++++ .../zTree/api/en/setting.data.key.checked.html | 24 +++++++ .../zTree/api/en/setting.data.key.children.html | 23 +++++++ .../zTree/api/en/setting.data.key.name.html | 23 +++++++ .../zTree/api/en/setting.data.key.title.html | 24 +++++++ .../zTree/api/en/setting.data.key.url.html | 24 +++++++ .../api/en/setting.data.simpleData.enable.html | 39 +++++++++++ .../api/en/setting.data.simpleData.idKey.html | 32 +++++++++ .../api/en/setting.data.simpleData.pIdKey.html | 32 +++++++++ .../api/en/setting.data.simpleData.rootPId.html | 32 +++++++++ .../en/setting.edit.drag.autoExpandTrigger.html | 29 +++++++++ .../api/en/setting.edit.drag.autoOpenTime.html | 25 ++++++++ .../zTree/api/en/setting.edit.drag.borderMax.html | 25 ++++++++ .../zTree/api/en/setting.edit.drag.borderMin.html | 25 ++++++++ .../zTree/api/en/setting.edit.drag.inner.html | 60 +++++++++++++++++ .../zTree/api/en/setting.edit.drag.isCopy.html | 32 +++++++++ .../zTree/api/en/setting.edit.drag.isMove.html | 32 +++++++++ .../api/en/setting.edit.drag.maxShowNodeNum.html | 25 ++++++++ .../api/en/setting.edit.drag.minMoveSize.html | 25 ++++++++ .../zTree/api/en/setting.edit.drag.next.html | 59 +++++++++++++++++ .../zTree/api/en/setting.edit.drag.prev.html | 59 +++++++++++++++++ .../api/en/setting.edit.editNameSelectAll.html | 27 ++++++++ .../zTree/api/en/setting.edit.enable.html | 39 +++++++++++ .../zTree/api/en/setting.edit.removeTitle.html | 48 ++++++++++++++ .../zTree/api/en/setting.edit.renameTitle.html | 48 ++++++++++++++ .../zTree/api/en/setting.edit.showRemoveBtn.html | 50 +++++++++++++++ .../zTree/api/en/setting.edit.showRenameBtn.html | 52 +++++++++++++++ .../thirdparty/zTree/api/en/setting.treeId.html | 14 ++++ .../thirdparty/zTree/api/en/setting.treeObj.html | 14 ++++ .../zTree/api/en/setting.view.addDiyDom.html | 40 ++++++++++++ .../zTree/api/en/setting.view.addHoverDom.html | 45 +++++++++++++ .../api/en/setting.view.autoCancelSelected.html | 27 ++++++++ .../zTree/api/en/setting.view.dblClickExpand.html | 45 +++++++++++++ .../zTree/api/en/setting.view.expandSpeed.html | 31 +++++++++ .../zTree/api/en/setting.view.fontCss.html | 42 ++++++++++++ .../zTree/api/en/setting.view.nameIsHTML.html | 28 ++++++++ .../zTree/api/en/setting.view.removeHoverDom.html | 45 +++++++++++++ .../zTree/api/en/setting.view.selectedMulti.html | 28 ++++++++ .../zTree/api/en/setting.view.showIcon.html | 45 +++++++++++++ .../zTree/api/en/setting.view.showLine.html | 26 ++++++++ .../zTree/api/en/setting.view.showTitle.html | 47 ++++++++++++++ .../api/en/setting.view.txtSelectedEnable.html | 26 ++++++++ .../zTree/api/en/treeNode.check_Child_State.html | 43 +++++++++++++ .../zTree/api/en/treeNode.check_Focus.html | 19 ++++++ .../thirdparty/zTree/api/en/treeNode.checked.html | 32 +++++++++ .../zTree/api/en/treeNode.checkedOld.html | 25 ++++++++ .../thirdparty/zTree/api/en/treeNode.children.html | 35 ++++++++++ .../zTree/api/en/treeNode.chkDisabled.html | 28 ++++++++ .../thirdparty/zTree/api/en/treeNode.click.html | 24 +++++++ .../thirdparty/zTree/api/en/treeNode.diy.html | 15 +++++ .../zTree/api/en/treeNode.editNameFlag.html | 19 ++++++ .../zTree/api/en/treeNode.getCheckStatus.html | 63 ++++++++++++++++++ .../zTree/api/en/treeNode.getNextNode.html | 27 ++++++++ .../zTree/api/en/treeNode.getParentNode.html | 27 ++++++++ .../zTree/api/en/treeNode.getPreNode.html | 27 ++++++++ .../zTree/api/en/treeNode.halfCheck.html | 29 +++++++++ .../thirdparty/zTree/api/en/treeNode.icon.html | 33 ++++++++++ .../zTree/api/en/treeNode.iconClose.html | 33 ++++++++++ .../thirdparty/zTree/api/en/treeNode.iconOpen.html | 33 ++++++++++ .../thirdparty/zTree/api/en/treeNode.iconSkin.html | 43 +++++++++++++ .../zTree/api/en/treeNode.isAjaxing.html | 26 ++++++++ .../zTree/api/en/treeNode.isFirstNode.html | 28 ++++++++ .../thirdparty/zTree/api/en/treeNode.isHidden.html | 28 ++++++++ .../thirdparty/zTree/api/en/treeNode.isHover.html | 19 ++++++ .../zTree/api/en/treeNode.isLastNode.html | 28 ++++++++ .../thirdparty/zTree/api/en/treeNode.isParent.html | 28 ++++++++ .../thirdparty/zTree/api/en/treeNode.level.html | 25 ++++++++ .../thirdparty/zTree/api/en/treeNode.name.html | 25 ++++++++ .../thirdparty/zTree/api/en/treeNode.nocheck.html | 26 ++++++++ .../thirdparty/zTree/api/en/treeNode.open.html | 30 +++++++++ .../zTree/api/en/treeNode.parentTId.html | 27 ++++++++ .../thirdparty/zTree/api/en/treeNode.tId.html | 25 ++++++++ .../thirdparty/zTree/api/en/treeNode.target.html | 24 +++++++ .../thirdparty/zTree/api/en/treeNode.url.html | 25 ++++++++ .../thirdparty/zTree/api/en/treeNode.zAsync.html | 28 ++++++++ .../thirdparty/zTree/api/en/zTreeObj.addNodes.html | 42 ++++++++++++ .../zTree/api/en/zTreeObj.cancelEditName.html | 30 +++++++++ .../zTree/api/en/zTreeObj.cancelSelectedNode.html | 35 ++++++++++ .../zTree/api/en/zTreeObj.checkAllNodes.html | 29 +++++++++ .../zTree/api/en/zTreeObj.checkNode.html | 44 +++++++++++++ .../thirdparty/zTree/api/en/zTreeObj.copyNode.html | 47 ++++++++++++++ .../thirdparty/zTree/api/en/zTreeObj.destroy.html | 25 ++++++++ .../thirdparty/zTree/api/en/zTreeObj.editName.html | 29 +++++++++ .../zTree/api/en/zTreeObj.expandAll.html | 30 +++++++++ .../zTree/api/en/zTreeObj.expandNode.html | 50 +++++++++++++++ .../api/en/zTreeObj.getChangeCheckedNodes.html | 24 +++++++ .../zTree/api/en/zTreeObj.getCheckedNodes.html | 28 ++++++++ .../zTree/api/en/zTreeObj.getNodeByParam.html | 32 +++++++++ .../zTree/api/en/zTreeObj.getNodeByTId.html | 27 ++++++++ .../zTree/api/en/zTreeObj.getNodeIndex.html | 30 +++++++++ .../thirdparty/zTree/api/en/zTreeObj.getNodes.html | 26 ++++++++ .../zTree/api/en/zTreeObj.getNodesByFilter.html | 43 +++++++++++++ .../zTree/api/en/zTreeObj.getNodesByParam.html | 31 +++++++++ .../api/en/zTreeObj.getNodesByParamFuzzy.html | 32 +++++++++ .../zTree/api/en/zTreeObj.getSelectedNodes.html | 23 +++++++ .../thirdparty/zTree/api/en/zTreeObj.hideNode.html | 29 +++++++++ .../zTree/api/en/zTreeObj.hideNodes.html | 29 +++++++++ .../thirdparty/zTree/api/en/zTreeObj.moveNode.html | 49 ++++++++++++++ .../zTree/api/en/zTreeObj.reAsyncChildNodes.html | 42 ++++++++++++ .../thirdparty/zTree/api/en/zTreeObj.refresh.html | 24 +++++++ .../zTree/api/en/zTreeObj.removeChildNodes.html | 32 +++++++++ .../zTree/api/en/zTreeObj.removeNode.html | 34 ++++++++++ .../zTree/api/en/zTreeObj.selectNode.html | 34 ++++++++++ .../zTree/api/en/zTreeObj.setChkDisabled.html | 44 +++++++++++++ .../zTree/api/en/zTreeObj.setEditable.html | 27 ++++++++ .../thirdparty/zTree/api/en/zTreeObj.setting.html | 14 ++++ .../thirdparty/zTree/api/en/zTreeObj.showNode.html | 31 +++++++++ .../zTree/api/en/zTreeObj.showNodes.html | 29 +++++++++ .../zTree/api/en/zTreeObj.transformToArray.html | 27 ++++++++ .../api/en/zTreeObj.transformTozTreeNodes.html | 44 +++++++++++++ .../zTree/api/en/zTreeObj.updateNode.html | 37 +++++++++++ 162 files changed, 5425 insertions(+) create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/fn.zTree._z.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/fn.zTree.destroy.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/fn.zTree.getZTreeObj.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/fn.zTree.init.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.async.autoParam.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.async.contentType.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.async.dataFilter.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.async.dataType.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.async.enable.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.async.otherParam.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.async.type.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.async.url.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeAsync.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeCheck.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeClick.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeCollapse.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeDblClick.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeDrag.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeDragOpen.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeDrop.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeEditName.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeExpand.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeMouseDown.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeMouseUp.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeRemove.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeRename.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeRightClick.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onAsyncError.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onAsyncSuccess.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onCheck.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onClick.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onCollapse.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onDblClick.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onDrag.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onDragMove.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onDrop.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onExpand.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onMouseDown.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onMouseUp.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onNodeCreated.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onRemove.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onRename.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onRightClick.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.check.autoCheckTrigger.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.check.chkDisabledInherit.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.check.chkStyle.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.check.chkboxType.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.check.enable.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.check.nocheckInherit.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.check.radioType.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.data.keep.leaf.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.data.keep.parent.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.data.key.checked.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.data.key.children.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.data.key.name.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.data.key.title.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.data.key.url.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.data.simpleData.enable.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.data.simpleData.idKey.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.data.simpleData.pIdKey.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.data.simpleData.rootPId.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.autoExpandTrigger.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.autoOpenTime.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.borderMax.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.borderMin.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.inner.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.isCopy.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.isMove.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.maxShowNodeNum.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.minMoveSize.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.next.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.prev.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.editNameSelectAll.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.enable.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.removeTitle.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.renameTitle.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.showRemoveBtn.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.showRenameBtn.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.treeId.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.treeObj.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.view.addDiyDom.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.view.addHoverDom.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.view.autoCancelSelected.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.view.dblClickExpand.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.view.expandSpeed.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.view.fontCss.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.view.nameIsHTML.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.view.removeHoverDom.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.view.selectedMulti.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.view.showIcon.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.view.showLine.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.view.showTitle.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.view.txtSelectedEnable.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/treeNode.check_Child_State.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/treeNode.check_Focus.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/treeNode.checked.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/treeNode.checkedOld.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/treeNode.children.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/treeNode.chkDisabled.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/treeNode.click.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/treeNode.diy.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/treeNode.editNameFlag.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/treeNode.getCheckStatus.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/treeNode.getNextNode.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/treeNode.getParentNode.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/treeNode.getPreNode.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/treeNode.halfCheck.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/treeNode.icon.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/treeNode.iconClose.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/treeNode.iconOpen.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/treeNode.iconSkin.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/treeNode.isAjaxing.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/treeNode.isFirstNode.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/treeNode.isHidden.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/treeNode.isHover.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/treeNode.isLastNode.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/treeNode.isParent.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/treeNode.level.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/treeNode.name.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/treeNode.nocheck.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/treeNode.open.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/treeNode.parentTId.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/treeNode.tId.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/treeNode.target.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/treeNode.url.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/treeNode.zAsync.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.addNodes.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.cancelEditName.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.cancelSelectedNode.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.checkAllNodes.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.checkNode.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.copyNode.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.destroy.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.editName.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.expandAll.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.expandNode.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getChangeCheckedNodes.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getCheckedNodes.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getNodeByParam.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getNodeByTId.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getNodeIndex.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getNodes.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getNodesByFilter.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getNodesByParam.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getNodesByParamFuzzy.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getSelectedNodes.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.hideNode.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.hideNodes.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.moveNode.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.reAsyncChildNodes.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.refresh.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.removeChildNodes.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.removeNode.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.selectNode.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.setChkDisabled.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.setEditable.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.setting.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.showNode.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.showNodes.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.transformToArray.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.transformTozTreeNodes.html create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.updateNode.html (limited to 'common/src/main/webapp/thirdparty/zTree/api/en') diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/fn.zTree._z.html b/common/src/main/webapp/thirdparty/zTree/api/en/fn.zTree._z.html new file mode 100644 index 0000000..61da261 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/fn.zTree._z.html @@ -0,0 +1,13 @@ +
+
+

JSON$.fn.zTree._z

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

All of the methods in zTree v3.x are available through the '$. fn.zTree._z' calls, open it for you to develop your own zTree plug-ins.

+

If you have no special requirements, please don't use this object, and don't modify the methods in this object.

+
+
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/fn.zTree.destroy.html b/common/src/main/webapp/thirdparty/zTree/api/en/fn.zTree.destroy.html new file mode 100644 index 0000000..3a31699 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/fn.zTree.destroy.html @@ -0,0 +1,28 @@ +
+
+

Function(treeId)$.fn.zTree.destroy

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

From zTree v3.4, zTree support the method for destruction.

+

1. This method can destroy the zTree with specify treeId, and can destroy all of the zTrees.

+

2. If you want to destory some one zTree, you can use the 'zTreeObj.destroy()' method.

+

3. If you want to use the tree which has been destroyed, you must use the 'init()' method at first.

+
+
+

Function Parameter Descriptions

+
+

treeIdString

+

zTree unique identifier

+

If this parameter is omitted, then will destroy all of the zTrees.

+

Return none

+

no return value

+
+

Examples of function

+

1. destroy the zTree which its id is 'treeDemo'

+
$.fn.zTree.destroy("treeDemo");
+

2. destroy all of the zTrees

+
$.fn.zTree.destroy();
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/fn.zTree.getZTreeObj.html b/common/src/main/webapp/thirdparty/zTree/api/en/fn.zTree.getZTreeObj.html new file mode 100644 index 0000000..2bc0447 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/fn.zTree.getZTreeObj.html @@ -0,0 +1,25 @@ +
+
+

Function(treeId)$.fn.zTree.getZTreeObj

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

zTree v3.x specifically provide the method which can use the tree's Id to get zTree object.

+

Please initialize zTree first, then you can use this method.

+

Users don't need to set the global variable to hold the zTree object, and all of the callback will return 'treeId' parameters, the user can always use this method to get the zTree object.

+
+
+

Function Parameter Descriptions

+
+

treeIdString

+

zTree unique identifier

+

Return JSON

+

zTree object

+

This object can provide the methods of operate the zTree

+
+

Examples of function

+

1. Get the zTree object which id is 'tree'

+
var treeObj = $.fn.zTree.getZTreeObj("tree");
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/fn.zTree.init.html b/common/src/main/webapp/thirdparty/zTree/api/en/fn.zTree.init.html new file mode 100644 index 0000000..cf97d2b --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/fn.zTree.init.html @@ -0,0 +1,75 @@ +
+
+

Function(obj, zSetting, zNodes)$.fn.zTree.init

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

The method which used to create zTree.

+

1. The web page need to use W3C markup. For example: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

+

2. Need to load jquery-1.4.2.js or other higher versions.

+

3. Need to load jquery-ztree.core-3.0.js. If you need to use the edit mode or checkbox / radio mode, you need to load jquery-ztree.exedit-3.0.js and jquery-ztree.excheck-3.0.js.

+

4. Need to load zTreeStyle.css and image files

+

5. If you need to use custom icons, please refer to the appropriate Demo.

+

6. Note: You need to set zTree container's class name to "ztree". If you need to change, don't forget to modify the css file. If you need other special styles, can modify the css file to their own needs.

+
+
+

Function Parameter Descriptions

+
+

objectjQuery Object

+

DOM Container for zTree

+

zSettingJSON

+

zTree's configuration data, please refer to "setting details" in the API Document.

+

zNodesArray(JSON) / JSON

+

zTree's node data, please refer to "treeNode data details" in the API Document.

+

1. zTree v3.x support to add single node, that is, if only to add one node, you can use JSON without using Array.

+

2. If you need asynchronous load root nodes, can be set to null or [ ]

+

3. If you use simple data mode, please refer to "setting.data.simpleData" in the API Document.

+

Return JSON

+

zTree object

+

This object can provide the methods of operate the zTree

+

You can use $.fn.zTree.getZTreeObj method at any time to obtain.

+
+

Examples of setting & function

+

1. create a simple tree

+
<!DOCTYPE html>
+<HTML>
+ <HEAD>
+  <TITLE> ZTREE DEMO </TITLE>
+  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
+  <link rel="stylesheet" href="zTreeStyle/zTreeStyle.css" type="text/css">
+  <script type="text/javascript" src="jquery-1.4.2.js"></script>
+  <script type="text/javascript" src="jquery.ztree.core-3.5.js"></script>
+<!--
+  <script type="text/javascript" src="jquery.ztree.excheck-3.5.js"></script>
+  <script type="text/javascript" src="jquery.ztree.exedit-3.5.js"></script>
+-->
+  <SCRIPT type="text/javascript" >
+	var zTreeObj,
+	setting = {
+		view: {
+			selectedMulti: false
+		}
+	},
+	zTreeNodes = [
+		{"name":"Site Map", open:true, children: [
+			{ "name":"google", "url":"http://www.google.com", "target":"_blank"},
+			{ "name":"baidu", "url":"http://baidu.com", "target":"_blank"},
+			{ "name":"sina", "url":"http://www.sina.com.cn", "target":"_blank"}
+			]
+		}
+	];
+
+	$(document).ready(function(){
+		zTreeObj = $.fn.zTree.init($("#tree"), setting, zTreeNodes);
+
+	});
+  </SCRIPT>
+ </HEAD>
+
+<BODY>
+<ul id="tree" class="ztree" style="width:230px; overflow:auto;"></ul>
+ </BODY>
+</HTML>
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.async.autoParam.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.async.autoParam.html new file mode 100644 index 0000000..85cd469 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.async.autoParam.html @@ -0,0 +1,39 @@ +
+
+

Array(String)setting.async.autoParam

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

Required automatically submit the parameters about the properties of the parent node, when the asynchronous load. It is valid when [setting.async.enable = true]

+

Default:[ ]

+
+
+

Array(String) Format

+
+

1. Just save the attribute name of node to the array. For example: ["id", "name"]

+

2. You can change the parameter name. For example: server only accepts "zId" -- ["id=zId"]

+
+

Examples of setting

+

1. set auto commit 'id' attribute

+
var setting = {
+	async: {
+		enable: true,
+		url: "http://host/getNode.php",
+		autoParam: ["id"]
+	}
+};
+If have the parent node: {id:1, name:"test"}, When asynchronously load this parent node's child nodes, will be submitted parameters: id=1
+......
+

2. set auto commit 'id' attribute, but parameter name is 'zId'

+
var setting = {
+	async: {
+		enable: true,
+		url: "http://host/getNode.php",
+		autoParam: ["id=zId"]
+	}
+};
+If have the parent node: {id:1, name:"test"}, When asynchronously load this parent node's child nodes, will be submitted parameters: zId=1
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.async.contentType.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.async.contentType.html new file mode 100644 index 0000000..cc9bfcd --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.async.contentType.html @@ -0,0 +1,29 @@ +
+
+

Stringsetting.async.contentType

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

When Ajax sending data to the server, use this content-type. It is valid when [setting.async.enable = true]

+

Default:"application/x-www-form-urlencoded"

+
+
+

String Format

+
+

contentType = "application/x-www-form-urlencoded", means: the sending data format is "form" format.

+

contentType = "application/json", means: the sending data format is "json" format. (for .Net)

+
+

Examples of setting

+

1. set the sending data format to "json" format.

+
var setting = {
+	async: {
+		enable: true,
+		contentType: "application/json",
+		url: "http://host/getNode.php",
+		autoParam: ["id", "name"]
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.async.dataFilter.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.async.dataFilter.html new file mode 100644 index 0000000..34733e4 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.async.dataFilter.html @@ -0,0 +1,45 @@ +
+
+

Function(treeId, parentNode, responseData)setting.async.dataFilter

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

Function used to pre-process for the return data of Ajax. It is valid when [setting.async.enable = true]

+

Default: null

+
+
+

Function Parameter Descriptions

+
+

treeIdString

+

zTree unique identifier: treeId, easy for users to control.

+

parentNodeJSON

+

Parent node's JSON data object

+

When asynchronously loading the root, the parentNode = null

+

responseDataArray(JSON) / JSON / String

+

Ajax got Array (JSON) / JSON / String data objects

+

From v3.4, support the string with XML format.

+

Return Array(JSON) / JSON

+

The return value should be the JSON data structure which is supported by the zTree.

+

v3.x supports to load single node JSON data object.

+
+

Examples of setting & function

+

1. Modify the node name attribute which is ajax got.

+
function ajaxDataFilter(treeId, parentNode, responseData) {
+    if (responseData) {
+      for(var i =0; i < responseData.length; i++) {
+        responseData[i].name += "_filter";
+      }
+    }
+    return responseData;
+};
+var setting = {
+	async: {
+		enable: true,
+		url: "http://host/getNode.php",
+		dataFilter: ajaxDataFilter
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.async.dataType.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.async.dataType.html new file mode 100644 index 0000000..e6672e9 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.async.dataType.html @@ -0,0 +1,29 @@ +
+
+

Stringsetting.async.dataType

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

The data type of Ajax. It is valid when [setting.async.enable = true]

+

Default:"text"

+
+
+

String Format

+
+

dataType = "text", It can meet most of the needs.

+

The 'dataType' in zTree and jQuery's ajax is same.

+
+

Examples of setting

+

1. Set the dataType which ajax got is text.

+
var setting = {
+	async: {
+		enable: true,
+		dataType: "text",
+		url: "http://host/getNode.php",
+		autoParam: ["id", "name"]
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.async.enable.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.async.enable.html new file mode 100644 index 0000000..806ba6c --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.async.enable.html @@ -0,0 +1,30 @@ +
+
+

Booleansetting.async.enable

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

Set zTree asynchronous loading mode is turned on or off.

+

Default: false

+
+
+

Boolean Format

+
+

true - turn on asynchronous loading mode

+

false - turn off asynchronous loading mode

+

If set it is true, you must set attributes in setting.async

+

If you don't pass 'treeNodes' parameter when initialize zTree, the root nodes will get by ajax.

+
+

Examples of setting

+

1. Turn on asynchronous loading mode

+
var setting = {
+	async: {
+		enable: true,
+		url: "http://host/getNode.php",
+		autoParam: ["id", "name"]
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.async.otherParam.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.async.otherParam.html new file mode 100644 index 0000000..2e37390 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.async.otherParam.html @@ -0,0 +1,40 @@ +
+
+

Array(String) / JSONsetting.async.otherParam

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

The static parameters of the Ajax request. (key - value) It is valid when [setting.async.enable = true]

+

Default: [ ]

+
+
+

Array(String) Format

+
+

Can be empty array. e.g. [ ]. If set key, you must set value, e.g. [key, value]. ([key] or [key, value, key] is wrong!!)

+
+

JSON Format

+
+

Use JSON data format set the key-value. e.g. { key1:value1, key2:value2 }

+
+

Examples of setting

+

1. Use Array(String) Format

+
var setting = {
+	async: {
+		enable: true,
+		url: "http://host/getNode.php",
+		otherParam: ["id", "1", "name", "test"]
+	}
+};
+when zTree send ajax, the parameters will has: id=1&name=test
+

2. Use JSON data Format

+
var setting = {
+	async: {
+		enable: true,
+		url: "http://host/getNode.php",
+		otherParam: { "id":"1", "name":"test"}
+	}
+};
+when zTree send ajax, the parameters will has: id=1&name=test
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.async.type.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.async.type.html new file mode 100644 index 0000000..ae54338 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.async.type.html @@ -0,0 +1,30 @@ +
+
+

Stringsetting.async.type

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

Http request mode in ajax. It is valid when [setting.async.enable = true]

+

Defalut: "post"

+
+
+

String Format

+
+

"post" - http request mode

+

"get" - http request mode

+

The 'type' in zTree and jQuery's ajax is same.

+
+

Examples of setting

+

1. Set http request mode is 'get'

+
var setting = {
+	async: {
+		enable: true,
+		type: "get",
+		url: "http://host/getNode.php",
+		autoParam: ["id", "name"]
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.async.url.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.async.url.html new file mode 100644 index 0000000..5587f29 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.async.url.html @@ -0,0 +1,50 @@ +
+
+

String / Function(treeId, treeNode)setting.async.url

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

The URL to which the ajax request is sent. It is valid when [setting.async.enable = true]

+

Default: ""

+
+
+

String Format

+
+

A url string(e.g. "http://www.domain.com"). Note: please ensure that the url can be loaded

+

Url can also take parameters, please note that transcode.

+
+

Function Parameter Descriptions

+
+

treeIdString

+

zTree unique identifier: treeId, easy for users to control.

+

treeNodeJSON

+

Parent node's JSON data object

+

When asynchronously loading the root, the treeNode = null

+

Return String

+

Return value is same as 'String Format'

+
+

Examples of setting & function

+

1. set ajax url is "nodes.php"

+
var setting = {
+	async: {
+		enable: true,
+		url: "nodes.php",
+		autoParam: ["id", "name"]
+	}
+};
+......
+

2. set ajax url is "function"

+
function getAsyncUrl(treeId, treeNode) {
+    return treeNode.isParent ? "nodes1.php" : "nodes2.php";
+};
+var setting = {
+	async: {
+		enable: true,
+		url: getAsyncUrl,
+		autoParam: ["id", "name"]
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeAsync.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeAsync.html new file mode 100644 index 0000000..6563ff2 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeAsync.html @@ -0,0 +1,35 @@ +
+
+

Function(treeId, treeNode)setting.callback.beforeAsync

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

Used to capture the event before zTree execute ajax, zTree based on return value to determine whether to execute ajax.

+

Default: null

+
+
+

Function Parameter Descriptions

+
+

treeIdString

+

zTree unique identifier: treeId, easy for users to control.

+

treeNodeJSON

+

JSON data object of the parent node

+

When asynchronously loading the root, the treeNode = null

+

Return Boolean

+

return true or false

+

If return false, zTree will not execute ajax, and will not trigger the 'onAsyncSuccess / onAsyncError' callback.

+
+

Examples of setting & function

+

1. If the parent node's attribute 'id' is 1, zTree will not execute ajax.

+
function zTreeBeforeAsync(treeId, treeNode) {
+    return (treeNode.id !== 1);
+};
+var setting = {
+	callback: {
+		beforeAsync: zTreeBeforeAsync
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeCheck.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeCheck.html new file mode 100644 index 0000000..5260412 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeCheck.html @@ -0,0 +1,34 @@ +
+
+

Function(treeId, treeNode)setting.callback.beforeCheck

+

Overview[ depends on jquery.ztree.excheck js ]

+
+

+
+

Used to capture the event before check or uncheck node, zTree based on return value to determine whether to change check state.

+

Default: null

+
+
+

Function Parameter Descriptions

+
+

treeIdString

+

zTree unique identifier: treeId, easy for users to control.

+

treeNodeJSON

+

JSON data object of the node which is checked or unchecked

+

Return Boolean

+

return true or false

+

If return false, zTree will not change check state, and will not trigger the 'onCheck' callback.

+
+

Examples of setting & function

+

1. disable to change check state of all nodes, and keep the check state initialization

+
function zTreeBeforeCheck(treeId, treeNode) {
+    return false;
+};
+var setting = {
+	callback: {
+		beforeCheck: zTreeBeforeCheck
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeClick.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeClick.html new file mode 100644 index 0000000..32ddbf7 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeClick.html @@ -0,0 +1,49 @@ +
+
+

Function(treeId, treeNode, clickFlag)setting.callback.beforeClick

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

Used to capture the event before click node, zTree based on return value to determine whether to trigger the 'onClick' callback.

+

Default: null

+
+
+

Function Parameter Descriptions

+
+

treeIdString

+

zTree unique identifier: treeId, easy for users to control.

+

treeNodeJSON

+

JSON data object of the node which is clicked

+

clickFlagNumber

+

Node is selected or deselected state, please see table below for details

+ + + + + + + + + + + + +
clickFlagselectedMultiautoCancelSelected
&&
event.ctrlKey / metaKey
isSelectedoperate for selected
1truefalsefalsenode is selected (single)
1truefalsetruenode is selected (single)
2truetruefalsenode is selected (multi)
0truetruetruenode is deselected
1falsefalsefalsenode is selected (single)
1falsefalsetruenode is selected (single)
1falsetruefalsenode is selected (single)
0falsetruetruenode is deselected
+

Return Boolean

+

return true or false

+

If return false, zTree will not change selected state, and will not trigger the 'onClick' callback.

+
+

Examples of setting & function

+

1. disabled to click the node

+
function zTreeBeforeClick(treeId, treeNode, clickFlag) {
+    return (treeNode.id !== 1);
+};
+var setting = {
+	callback: {
+		beforeClick: zTreeBeforeClick
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeCollapse.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeCollapse.html new file mode 100644 index 0000000..b2713e8 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeCollapse.html @@ -0,0 +1,34 @@ +
+
+

Function(treeId, treeNode)setting.callback.beforeCollapse

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

Used to capture the event before collapse node, zTree based on return value to determine whether to collapse node.

+

Default: null

+
+
+

Function Parameter Descriptions

+
+

treeIdString

+

zTree unique identifier: treeId, easy for users to control.

+

treeNodeJSON

+

JSON data object of the node which will be collapsed

+

Return Boolean

+

return true or false

+

If return false, zTree will not collapse node, and will not trigger the 'onCollapse' callback.

+
+

Examples of setting & function

+

1. disabled to collapse node which is expanded

+
function zTreeBeforeCollapse(treeId, treeNode) {
+    return false;
+};
+var setting = {
+	callback: {
+		beforeCollapse: zTreeBeforeCollapse
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeDblClick.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeDblClick.html new file mode 100644 index 0000000..6f1c743 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeDblClick.html @@ -0,0 +1,36 @@ +
+
+

Function(treeId, treeNode)setting.callback.beforeDblClick

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

Used to capture the dblclick event before the 'onDblClick' callback, zTree based on return value to determine whether to trigger the 'onDblClick' callback.

+

Default: null

+
+
+

Function Parameter Descriptions

+
+

treeIdString

+

zTree unique identifier: treeId, easy for users to control.

+

treeNodeJSON

+

JSON data object of the node which is double clicked

+

If the DOM which dblclicked isn't a node, it will return null.

+

Return Boolean

+

return true or false

+

If return false, ztree will not trigger the 'onDblClick' callback, no effect on other operations.

+

This callback function does not affect the dblclick the parent node to auto expand, please refer to setting.view.dblClickExpand properties.

+
+

Examples of setting & function

+

1. disable to trigger the 'onDblClick' callback

+
function zTreeBeforeDblClick(treeId, treeNode) {
+    return false;
+};
+var setting = {
+	callback: {
+		beforeDblClick: zTreeBeforeDblClick
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeDrag.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeDrag.html new file mode 100644 index 0000000..5175244 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeDrag.html @@ -0,0 +1,39 @@ +
+
+

Function(treeId, treeNodes)setting.callback.beforeDrag

+

Overview[ depends on jquery.ztree.exedit js ]

+
+

+
+

Used to capture the event before drag node, zTree based on return value to determine whether to start to drag node.

+

Default: null

+
+
+

Function Parameter Descriptions

+
+

treeIdString

+

zTree unique identifier: treeId, the tree is what the treeNodes are belong to, easy for users to control.

+

treeNodesArray(JSON)

+

A collection of the nodes which will be dragged

+

v3.x allows drag and drop multiple sibling nodes, so this parameter is modified to Array(JSON).

+

If the selected nodes aren't the sibling nodes, you can only drag one node which mouse over.

+

Return Boolean

+

return true or false

+

If return false, zTree will stop drag, and will not trigger the 'onDrag / beforeDrop / onDrop' callback.

+
+

Examples of setting & function

+

1. disable to drag all node

+
function zTreeBeforeDrag(treeId, treeNodes) {
+    return false;
+};
+var setting = {
+	edit: {
+		enable: true
+	},
+	callback: {
+		beforeDrag: zTreeBeforeDrag
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeDragOpen.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeDragOpen.html new file mode 100644 index 0000000..ed1ae97 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeDragOpen.html @@ -0,0 +1,37 @@ +
+
+

Function(treeId, treeNode)setting.callback.beforeDragOpen

+

Overview[ depends on jquery.ztree.exedit js ]

+
+

+
+

Used to capture the event when drag node to collapsed parent node, zTree based on return value to determine whether to auto expand parent node.

+

Default: null

+
+
+

Function Parameter Descriptions

+
+

treeIdString

+

zTree unique identifier: treeId, the tree is what the treeNode(parent node) is belong to, easy for users to control.

+

treeNodeJSON

+

JSON data object of the parent node which will be auto expanded

+

Return Boolean

+

return true or false

+

If return false, zTree will not auto expand parent node.

+
+

Examples of setting & function

+

1. disable to auto expand parent node.

+
function zTreeBeforeDragOpen(treeId, treeNode) {
+    return false;
+};
+var setting = {
+	edit: {
+		enable: true
+	},
+	callback: {
+		beforeDragOpen: zTreeBeforeDragOpen
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeDrop.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeDrop.html new file mode 100644 index 0000000..7014321 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeDrop.html @@ -0,0 +1,50 @@ +
+
+

Function(treeId, treeNodes, targetNode, moveType, isCopy)setting.callback.beforeDrop

+

Overview[ depends on jquery.ztree.exedit js ]

+
+

+
+

Used to capture the event before drag-drop node, zTree based on return value to determine whether to allow drag-drop node.

+

Default: null

+

When drop the nodes, if the dragged nodes is not in a valid location, this callback will not triggered, and will restore the original position.

+
+
+

Function Parameter Descriptions

+
+

treeIdString

+

zTree unique identifier: treeId, the tree is what the targetNode is belong to, easy for users to control.

+

treeNodesArray(JSON)

+

A collection of the nodes which has been dragged

+

The treeNodes are the data of the nodes which has been dragged, when copy nodes or move nodes.

+

targetNodeJSON

+

JSON data object of the target node which treeNodes are drag-dropped.

+

If the treeNodes will be root node, the targetNode = null

+

moveTypeString

+

the relative position of move to the target node

+

"inner": will be child of targetNode

+

"prev": will be sibling node, and be in front of targetNode

+

"next": will be sibling node, and be behind targetNode

+

isCopyBoolean

+

the flag used to judge copy node or move node

+

true: copy node; false: move node

+

Return Boolean

+

return true or false

+

If return false, zTree will restore the dragged nodes, and will not trigger the 'onDrop' callback.

+
+

Examples of setting & function

+

1. disable to drag nodes to root

+
function zTreeBeforeDrop(treeId, treeNodes, targetNode, moveType) {
+    return !(targetNode == null || (moveType != "inner" && !targetNode.parentTId));
+};
+var setting = {
+	edit: {
+		enable: true
+	},
+	callback: {
+		beforeDrop: zTreeBeforeDrop
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeEditName.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeEditName.html new file mode 100644 index 0000000..8772a3e --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeEditName.html @@ -0,0 +1,38 @@ +
+
+

Function(treeId, treeNode)setting.callback.beforeEditName

+

Overview[ depends on jquery.ztree.exedit js ]

+
+

+
+

Used to capture the event before click edit button, zTree based on return value to determine whether to allow to edit the name.

+

This callback is used to capture the event which edit button is clicked, then trigger the custom editing operation.

+

Default: null

+
+
+

Function Parameter Descriptions

+
+

treeIdString

+

zTree unique identifier: treeId, easy for users to control.

+

treeNodeJSON

+

JSON data object of the node which will be edited name.

+

Return Boolean

+

return true or false

+

If return false, the node will not be able to edit the name.

+
+

Examples of setting & function

+

1. disable to edit the parent node's name

+
function zTreeBeforeEditName(treeId, treeNode) {
+	return !treeNode.isParent;
+}
+var setting = {
+	edit: {
+		enable: true
+	},
+	callback: {
+		beforeEditName: zTreeBeforeEditName
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeExpand.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeExpand.html new file mode 100644 index 0000000..73cf55a --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeExpand.html @@ -0,0 +1,34 @@ +
+
+

Function(treeId, treeNode)setting.callback.beforeExpand

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

Used to capture the event before expand node, zTree based on return value to determine whether to expand node.

+

Default: null

+
+
+

Function Parameter Descriptions

+
+

treeIdString

+

zTree unique identifier: treeId, easy for users to control.

+

treeNodeJSON

+

JSON data object of the node which will be expanded

+

Return Boolean

+

return true or false

+

If return false, zTree will not expand node, and will not trigger the 'onExpand' callback.

+
+

Examples of setting & function

+

1. disabled to expand node which is collapsed

+
function zTreeBeforeExpand(treeId, treeNode) {
+    return false;
+};
+var setting = {
+	callback: {
+		beforeExpand: zTreeBeforeExpand
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeMouseDown.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeMouseDown.html new file mode 100644 index 0000000..4af0818 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeMouseDown.html @@ -0,0 +1,35 @@ +
+
+

Function(treeId, treeNode)setting.callback.beforeMouseDown

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

Used to capture the mousedown event before the 'onMouseDown' callback, zTree based on return value to determine whether to trigger the 'onMouseDown' callback.

+

Default: null

+
+
+

Function Parameter Descriptions

+
+

treeIdString

+

zTree unique identifier: treeId, easy for users to control.

+

treeNodeJSON

+

JSON data object of the node which mouse over

+

If the DOM which mouse over isn't a node, it will return null.

+

Return Boolean

+

return true or false

+

If return false, zTree will not trigger the 'onMouseDown' callback, no effect on other operations.

+
+

Examples of setting & function

+

1. disable to trigger the 'onMouseDown' callback

+
function zTreeBeforeMouseDown(treeId, treeNode) {
+    return false;
+};
+var setting = {
+	callback: {
+		beforeMouseDown: zTreeBeforeMouseDown
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeMouseUp.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeMouseUp.html new file mode 100644 index 0000000..0c008fc --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeMouseUp.html @@ -0,0 +1,35 @@ +
+
+

Function(treeId, treeNode)setting.callback.beforeMouseUp

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

Used to capture the mouseup event before the 'onMouseUp' callback, zTree based on return value to determine whether to trigger the 'onMouseUp' callback.

+

Default: null

+
+
+

Function Parameter Descriptions

+
+

treeIdString

+

zTree unique identifier: treeId, easy for users to control.

+

treeNodeJSON

+

JSON data object of the node which mouse over

+

If the DOM which mouse over isn't a node, it will return null.

+

Return Boolean

+

return true or false

+

If return false, zTree will not trigger the 'onMouseUp' callback, no effect on other operations.

+
+

Examples of setting & function

+

1. disable to trigger the 'onMouseUp' callback

+
function zTreeBeforeMouseUp(treeId, treeNode) {
+    return false;
+};
+var setting = {
+	callback: {
+		beforeMouseUp: zTreeBeforeMouseUp
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeRemove.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeRemove.html new file mode 100644 index 0000000..38e14c1 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeRemove.html @@ -0,0 +1,37 @@ +
+
+

Function(treeId, treeNode)setting.callback.beforeRemove

+

Overview[ depends on jquery.ztree.exedit js ]

+
+

+
+

Used to capture the event before remove node, zTree based on return value to determine whether to allow to remove node.

+

Default: null

+
+
+

Function Parameter Descriptions

+
+

treeIdString

+

zTree unique identifier: treeId, easy for users to control.

+

treeNodeJSON

+

JSON data object of the node which will be removed.

+

Return Boolean

+

return true or false

+

If return false, zTree will not remove node, and will not trigger the 'onRemove' callback.

+
+

Examples of setting & function

+

1. disable to remove node

+
function zTreeBeforeRemove(treeId, treeNode) {
+	return false;
+}
+var setting = {
+	edit: {
+		enable: true
+	},
+	callback: {
+		beforeRemove: zTreeBeforeRemove
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeRename.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeRename.html new file mode 100644 index 0000000..76438a9 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeRename.html @@ -0,0 +1,46 @@ +
+
+

Function(treeId, treeNode, newName, isCancel)setting.callback.beforeRename

+

Overview[ depends on jquery.ztree.exedit js ]

+
+

+
+

Used to capture the event before rename(when input DOM blur or press Enter Key), zTree based on return value to determine whether to allow to rename node.

+

When node is editing name, press the ESC key to restore the original name and stop edit name.

+

From v3.5.13, zTree will trigger this callback when user cancel edit name. please see 'isCancel' parameter.

+

Default: null

+
+
+

Function Parameter Descriptions

+
+

treeIdString

+

zTree unique identifier: treeId, easy for users to control.

+

treeNodeJSON

+

JSON data object of the node which will be rename.

+

newNameString

+

the new name

+

isCancelBoolean

+

the status about cancel edit name (v3.5.13+)

+

isCancel = true means: user cancel edit name. (press ESC or use cancelEditName() function)

+

isCancel = false means: user submit edit name.

+

Return Boolean

+

return true or false

+

If return false, the treeNode will keep the editing name, don't trigger the 'onRename' callback, and will ignore other enents, until the callback return true.

+

If returns false, zTree will not set the input box to get focus to avoid the warning message which led to repeated triggering ‘beforeRename’ callback. Please use editName() method to set the input box to get focus when user close the warning message.

+
+

Examples of setting & function

+

1. the length of the new name can't less than 5

+
function zTreeBeforeRename(treeId, treeNode, newName, isCancel) {
+	return newName.length > 5;
+}
+var setting = {
+	edit: {
+		enable: true
+	},
+	callback: {
+		beforeRename: zTreeBeforeRename
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeRightClick.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeRightClick.html new file mode 100644 index 0000000..15c38cd --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeRightClick.html @@ -0,0 +1,35 @@ +
+
+

Function(treeId, treeNode)setting.callback.beforeRightClick

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

Used to capture the right click event before the 'onRightClick' callback, zTree based on return value to determine whether to trigger the 'onRightClick' callback.

+

Default: null

+
+
+

Function Parameter Descriptions

+
+

treeIdString

+

zTree unique identifier: treeId, easy for users to control.

+

treeNodeJSON

+

JSON data object of the node which is mouse right clicked

+

If the DOM which mouse right clicked isn't a node, it will return null.

+

ReturnBoolean

+

return true or false

+

If return false, ztree will not trigger the 'onRightClick' callback, no effect on other operations.

+
+

Examples of setting & function

+

1. disable to trigger the 'onRightClick' callback

+
function zTreeBeforeRightClick(treeId, treeNode) {
+    return false;
+};
+var setting = {
+	callback: {
+		beforeRightClick: zTreeBeforeRightClick
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onAsyncError.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onAsyncError.html new file mode 100644 index 0000000..785c8d8 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onAsyncError.html @@ -0,0 +1,42 @@ +
+
+

setting.callback.onAsyncError

+

Function(event, treeId, treeNode, XMLHttpRequest, textStatus, errorThrown) 

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

Used to capture the error event when execute ajax.

+

If you set 'setting.callback.beforeAsync',and return false, zTree will not execute ajax, and will not trigger the 'onAsyncSuccess / onAsyncError' callback.

+

Default: null

+
+
+

Function Parameter Descriptions

+
+

eventjs event Object

+

event Object

+

treeIdString

+

zTree unique identifier: treeId, easy for users to control.

+

treeNodeJSON

+

JSON data object of the parent node

+

When load root nodes, treeNode = null

+

XMLHttpRequestString

+

XMLHttpRequest Object, please refer to JQuery API documentation.

+

textStatusString

+

a string categorizing the status of the request("success", "error"...), please refer to JQuery API documentation.

+

errorThrownString

+

eWhen an HTTP error occurs, errorThrown receives the textual portion of the HTTP status, please refer to JQuery API documentation.

+
+

Examples of setting & function

+

1. When execute ajax make error, alert message.

+
function zTreeOnAsyncError(event, treeId, treeNode, XMLHttpRequest, textStatus, errorThrown) {
+    alert(XMLHttpRequest);
+};
+var setting = {
+	callback: {
+		onAsyncError: zTreeOnAsyncError
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onAsyncSuccess.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onAsyncSuccess.html new file mode 100644 index 0000000..2722691 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onAsyncSuccess.html @@ -0,0 +1,38 @@ +
+
+

Function(event, treeId, treeNode, msg)setting.callback.onAsyncSuccess

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

Used to capture the complete success event when execute ajax.

+

If you set 'setting.callback.beforeAsync',and return false, zTree will not execute ajax, and will not trigger the 'onAsyncSuccess / onAsyncError' callback.

+

Default: null

+
+
+

Function Parameter Descriptions

+
+

eventjs event Object

+

event Object

+

treeIdString

+

zTree unique identifier: treeId, easy for users to control.

+

treeNodeJSON

+

JSON data object of the parent node

+

When load root nodes, treeNode = null

+

msgString / Object

+

The actualnode data which got by ajax. User-friendly debugging.

+

The actual data's type of msg is affected by 'setting.async.dataType', please refer to JQuery API documentation.

+
+

Examples of setting & function

+

1. When execute ajax complete success, alert message.

+
function zTreeOnAsyncSuccess(event, treeId, treeNode, msg) {
+    alert(msg);
+};
+var setting = {
+	callback: {
+		onAsyncSuccess: zTreeOnAsyncSuccess
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onCheck.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onCheck.html new file mode 100644 index 0000000..ed33f8d --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onCheck.html @@ -0,0 +1,34 @@ +
+
+

Function(event, treeId, treeNode)setting.callback.onCheck

+

Overview[ depends on jquery.ztree.excheck js ]

+
+

+
+

Used to capture the check or uncheck event when check or uncheck the checkbox and radio.

+

If you set 'setting.callback.beforeCheck',and return false, zTree will not change check state, and will not trigger the 'onCheck' callback.

+

Default: null

+
+
+

Function Parameter Descriptions

+
+

eventjs event Object

+

event Object

+

treeIdString

+

zTree unique identifier: treeId, easy for users to control.

+

treeNodeJSON

+

JSON data object of the node which is checked or unchecked

+
+

Examples of setting & function

+

1. When check or uncheck the checkbox and radio, alert info about 'tId' and 'name' and 'checked'.

+
function zTreeOnCheck(event, treeId, treeNode) {
+    alert(treeNode.tId + ", " + treeNode.name + "," + treeNode.checked);
+};
+var setting = {
+	callback: {
+		onCheck: zTreeOnCheck
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onClick.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onClick.html new file mode 100644 index 0000000..0453af8 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onClick.html @@ -0,0 +1,49 @@ +
+
+

Function(event, treeId, treeNode, clickFlag)setting.callback.onClick

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

Used to capture the click event when click node.

+

If you set 'setting.callback.beforeClick',and return false, zTree will not change selected state, and will not trigger the 'onClick' callback.

+

Default: null

+
+
+

Function Parameter Descriptions

+
+

eventjs event Object

+

event Object

+

treeIdString

+

zTree unique identifier: treeId, easy for users to control.

+

treeNodeJSON

+

JSON data object of the node which is clicked

+

clickFlagNumber

+

Node is selected or deselected state, please see table below for details

+ + + + + + + + + + + + +
clickFlagselectedMultiautoCancelSelected
&&
event.ctrlKey / metaKey
isSelectedoperate for selected
1truefalsefalsenode is selected (single)
1truefalsetruenode is selected (single)
2truetruefalsenode is selected (multi)
0truetruetruenode is deselected
1falsefalsefalsenode is selected (single)
1falsefalsetruenode is selected (single)
1falsetruefalsenode is selected (single)
0falsetruetruenode is deselected
+
+

Examples of setting & function

+

1. When click node, alert info about 'tId' and 'name'.

+
function zTreeOnClick(event, treeId, treeNode) {
+    alert(treeNode.tId + ", " + treeNode.name);
+};
+var setting = {
+	callback: {
+		onClick: zTreeOnClick
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onCollapse.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onCollapse.html new file mode 100644 index 0000000..d605dc8 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onCollapse.html @@ -0,0 +1,34 @@ +
+
+

Function(event, treeId, treeNode)setting.callback.onCollapse

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

Used to capture the event when collapse node.

+

If you set 'setting.callback.beforeCollapse',and return false, zTree will not collapse node, and will not trigger the 'onCollapse' callback.

+

Default: null

+
+
+

Function Parameter Descriptions

+
+

eventjs event Object

+

event Object

+

treeIdString

+

zTree unique identifier: treeId, easy for users to control.

+

treeNodeJSON

+

JSON data object of the node which will be collapsed

+
+

Examples of setting & function

+

1. When collapse node, alert info about 'tId' and 'name'.

+
function zTreeOnCollapse(event, treeId, treeNode) {
+    alert(treeNode.tId + ", " + treeNode.name);
+};
+var setting = {
+	callback: {
+		onCollapse: zTreeOnCollapse
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onDblClick.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onDblClick.html new file mode 100644 index 0000000..fbd47e8 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onDblClick.html @@ -0,0 +1,35 @@ +
+
+

Function(event, treeId, treeNode)setting.callback.onDblClick

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

Used to capture the dblclick event when double click node.

+

If you set 'setting.callback.beforeDblClick',and return false, zTree will not trigger the 'onDblClick' callback.

+

Default: null

+
+
+

Function Parameter Descriptions

+
+

eventjs event Object

+

event Object

+

treeIdString

+

zTree unique identifier: treeId, easy for users to control.

+

treeNodeJSON

+

JSON data object of the node which is double clicked

+

If the DOM which dblclicked isn't a node, it will return null.

+
+

Examples of setting & function

+

1. When double click node, alert info about 'tId' and 'name'.

+
function zTreeOnDblClick(event, treeId, treeNode) {
+    alert(treeNode ? treeNode.tId + ", " + treeNode.name : "isRoot");
+};
+var setting = {
+	callback: {
+		onDblClick: zTreeOnDblClick
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onDrag.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onDrag.html new file mode 100644 index 0000000..d178b63 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onDrag.html @@ -0,0 +1,34 @@ +
+
+

Function(event, treeId, treeNodes)setting.callback.onDrag

+

Overview[ depends on jquery.ztree.exedit js ]

+
+

+
+

Used to capture the drag event when drag node.

+

If you set 'setting.callback.beforeDrag',and return false, zTree will stop drag, and will not trigger the 'onDragMove' & 'onDrag' callback.

+

Default: null

+
+
+

Function Parameter Descriptions

+
+

eventjs event Object

+

event Object

+

treeIdString

+

zTree unique identifier: treeId, the tree is what the treeNodes are belong to, easy for users to control.

+

treeNodesArray(JSON)

+

A collection of the nodes which will be dragged

+
+

Examples of setting & function

+

1. When drag nodes, alert the number of dragged nodes.

+
function zTreeOnDrag(event, treeId, treeNodes) {
+    alert(treeNodes.length);
+};
+var setting = {
+	callback: {
+		onDrag: zTreeOnDrag
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onDragMove.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onDragMove.html new file mode 100644 index 0000000..a56e835 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onDragMove.html @@ -0,0 +1,34 @@ +
+
+

Function(event, treeId, treeNodes)setting.callback.onDragMove

+

Overview[ depends on jquery.ztree.exedit js ]

+
+

+
+

Used to capture the drag-move event when drag & drop node.

+

Mainly used to capture the DOM which the nodes was drag in.

+

Default: null

+
+
+

Function Parameter Descriptions

+
+

eventjs event Object

+

event Object

+

treeIdString

+

zTree unique identifier: treeId, the tree is what the treeNodes are belong to, easy for users to control.

+

treeNodesArray(JSON)

+

A collection of the nodes which will be dragged

+
+

Examples of setting & function

+

1. When drag nodes, output the target dom.

+
function zTreeOnDragMove(event, treeId, treeNodes) {
+	console.log(event.target);
+};
+var setting = {
+	callback: {
+		onDragMove: zTreeOnDragMove
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onDrop.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onDrop.html new file mode 100644 index 0000000..6362463 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onDrop.html @@ -0,0 +1,48 @@ +
+
+

Function(event, treeId, treeNodes, targetNode, moveType, isCopy)setting.callback.onDrop

+

Overview[ depends on jquery.ztree.exedit js ]

+
+

+
+

Used to capture the drop event when drag-drop node.

+

If you set 'setting.callback.beforeDrop',and return false, zTree will restore the dragged nodes, and will not trigger the 'onDrop' callback.

+

Default: null

+
+
+

Function Parameter Descriptions

+
+

eventjs event Object

+

event Object

+

treeIdString

+

zTree unique identifier: treeId, the tree is what the targetNode is belong to, easy for users to control.

+

treeNodesArray(JSON)

+

A collection of the nodes which has been dragged

+

The treeNodes are the data of the nodes which be dragged, when move nodes.

+

The treeNodes are the clone data of the nodes which be dragged, when copy nodes.

+

targetNodeJSON

+

JSON data object of the target node which treeNodes are drag-dropped.

+

If the treeNodes will be root node, the targetNode = null

+

moveTypeString

+

the relative position of move to the target node

+

"inner": will be child of targetNode

+

"prev": will be sibling node, and be in front of targetNode

+

"next": will be sibling node, and be behind targetNode

+

If moveType is null, means drag & drop is cancel.

+

isCopyBoolean

+

the flag used to judge copy node or move node

+

true: copy node; false: move node

+
+

Examples of setting & function

+

1. When drag-drop nodes complete, alert the number of dragged nodes and info about targetNode.

+
function zTreeOnDrop(event, treeId, treeNodes, targetNode, moveType) {
+    alert(treeNodes.length + "," + (targetNode ? (targetNode.tId + ", " + targetNode.name) : "isRoot" ));
+};
+var setting = {
+	callback: {
+		onDrop: zTreeOnDrop
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onExpand.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onExpand.html new file mode 100644 index 0000000..7b9d8d5 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onExpand.html @@ -0,0 +1,34 @@ +
+
+

Function(event, treeId, treeNode)setting.callback.onExpand

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

Used to capture the event when expand node.

+

If you set 'setting.callback.beforeExpand',and return false, zTree will not expand node, and will not trigger the 'onExpand' callback.

+

Default: null

+
+
+

Function Parameter Descriptions

+
+

eventjs event Object

+

event Object

+

treeIdString

+

zTree unique identifier: treeId, easy for users to control.

+

treeNodeJSON

+

JSON data object of the node which will be expanded

+
+

Examples of setting & function

+

1. When expand node, alert info about 'tId' and 'name'.

+
function zTreeOnExpand(event, treeId, treeNode) {
+    alert(treeNode.tId + ", " + treeNode.name);
+};
+var setting = {
+	callback: {
+		onExpand: zTreeOnExpand
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onMouseDown.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onMouseDown.html new file mode 100644 index 0000000..bfd714c --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onMouseDown.html @@ -0,0 +1,35 @@ +
+
+

Function(event, treeId, treeNode)setting.callback.onMouseDown

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

Used to capture the event when mouse down.

+

If you set 'setting.callback.beforeMouseDown',and return false, zTree will not trigger the 'onMouseDown' callback.

+

Default: null

+
+
+

Function Parameter Descriptions

+
+

eventjs event Object

+

event Object

+

treeIdString

+

zTree unique identifier: treeId, easy for users to control.

+

treeNodeJSON

+

JSON data object of the node which mouse over

+

If the DOM which mouse over isn't a node, it will return null.

+
+

Examples of setting & function

+

1. When mouse down, alert info about 'tId' and 'name'.

+
function zTreeOnMouseDown(event, treeId, treeNode) {
+    alert(treeNode ? treeNode.tId + ", " + treeNode.name : "isRoot");
+};
+var setting = {
+	callback: {
+		onMouseDown: zTreeOnMouseDown
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onMouseUp.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onMouseUp.html new file mode 100644 index 0000000..93edf31 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onMouseUp.html @@ -0,0 +1,35 @@ +
+
+

Function(event, treeId, treeNode)setting.callback.onMouseUp

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

Used to capture the event when mouse up.

+

If you set 'setting.callback.beforeMouseUp',and return false, zTree will not trigger the 'onMouseUp' callback.

+

Default: null

+
+
+

Function Parameter Descriptions

+
+

eventjs event Object

+

event Object

+

treeIdString

+

zTree unique identifier: treeId, easy for users to control.

+

treeNodeJSON

+

JSON data object of the node which mouse over

+

If the DOM which mouse over isn't a node, it will return null.

+
+

Examples of setting & function

+

1. When mouse up, alert info about 'tId' and 'name'.

+
function zTreeOnMouseUp(event, treeId, treeNode) {
+    alert(treeNode ? treeNode.tId + ", " + treeNode.name : "isRoot");
+};
+var setting = {
+	callback: {
+		onMouseUp: zTreeOnMouseUp
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onNodeCreated.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onNodeCreated.html new file mode 100644 index 0000000..a98b572 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onNodeCreated.html @@ -0,0 +1,35 @@ +
+
+

Function(event, treeId, treeNode)setting.callback.onNodeCreated

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

Used to capture the event when node's DOM is created.

+

Because v3.x uses lazy loading technology, so the nodes which doesn't create DOM when initialized will not trigger this callback, until its parent node is expanded.

+

Large amount of data to load, please note: do not set onNodeCreated, can improve performance as when initialized.

+

Default: null

+
+
+

Function Parameter Descriptions

+
+

eventjs event Object

+

event Object

+

treeIdString

+

zTree unique identifier: treeId, easy for users to control.

+

treeNodeJSON

+

JSON data object of the node which DOM is created

+
+

Examples of setting & function

+

1. When node's DOM is created, alert info about 'tId' and 'name'.

+
function zTreeOnNodeCreated(event, treeId, treeNode) {
+    alert(treeNode.tId + ", " + treeNode.name);
+};
+var setting = {
+	callback: {
+		onNodeCreated: zTreeOnNodeCreated
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onRemove.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onRemove.html new file mode 100644 index 0000000..ce29413 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onRemove.html @@ -0,0 +1,34 @@ +
+
+

Function(event, treeId, treeNode)setting.callback.onRemove

+

Overview[ depends on jquery.ztree.exedit js ]

+
+

+
+

Used to capture the event when remove node.

+

If you set 'setting.callback.beforeRemove',and return false, zTree will not remove node, and will not trigger the 'onRemove' callback.

+

Default: null

+
+
+

Function Parameter Descriptions

+
+

eventjs event Object

+

event Object

+

treeIdString

+

zTree unique identifier: treeId, easy for users to control.

+

treeNodeJSON

+

JSON data object of the node which was removed.

+
+

Examples of setting & function

+

1. When remove node, alert info about 'tId' and 'name'.

+
function zTreeOnRemove(event, treeId, treeNode) {
+	alert(treeNode.tId + ", " + treeNode.name);
+}
+var setting = {
+	callback: {
+		onRemove: zTreeOnRemove
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onRename.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onRename.html new file mode 100644 index 0000000..cd47eae --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onRename.html @@ -0,0 +1,40 @@ +
+
+

Function(event, treeId, treeNode, isCancel)setting.callback.onRename

+

Overview[ depends on jquery.ztree.exedit js ]

+
+

+
+

Used to capture the event when remove node.

+

1. If you set 'setting.callback.beforeRename',and return false, zTree will keep the editing name, and will not trigger the 'onRename' callback.

+

2. If you modity treeNode data, and use 'updateNode' function, zTree will not trigger the 'onRename' callback.

+

3. From v3.5.13, zTree will trigger this callback when user cancel edit name. please see 'isCancel' parameter.

+

Default: null

+
+
+

Function Parameter Descriptions

+
+

eventjs event Object

+

event Object

+

treeIdString

+

zTree unique identifier: treeId, easy for users to control.

+

treeNodeJSON

+

JSON data object of the node which was rename.

+

isCancelBoolean

+

the status about cancel edit name (v3.5.13+)

+

isCancel = true means: user cancel edit name. (press ESC or use cancelEditName() function)

+

isCancel = false means: user submit edit name.

+
+

Examples of setting & function

+

1. When rename node, alert info about 'tId' and 'name'.

+
function zTreeOnRename(event, treeId, treeNode, isCancel) {
+	alert(treeNode.tId + ", " + treeNode.name);
+}
+var setting = {
+	callback: {
+		onRename: zTreeOnRename
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onRightClick.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onRightClick.html new file mode 100644 index 0000000..86b4b01 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onRightClick.html @@ -0,0 +1,36 @@ +
+
+

Function(event, treeId, treeNode)setting.callback.onRightClick

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

Used to capture the event when mouse right click node.

+

If you set 'setting.callback.beforeRightClick',and return false, zTree will not trigger the 'onRightClick' callback.

+

If you set 'setting.callback.onRightClick', zTree will shield the browser context menu when mouse right click on zTree.

+

Default: null

+
+
+

Function Parameter Descriptions

+
+

eventjs event Object

+

event Object

+

treeIdString

+

zTree unique identifier: treeId, easy for users to control.

+

treeNodeJSON

+

JSON data object of the node which is mouse right clicked

+

If the DOM which mouse right clicked isn't a node, it will return null.

+
+

Examples of setting & function

+

1. When mouse right click node, alert info about 'tId' and 'name'.

+
function zTreeOnRightClick(event, treeId, treeNode) {
+    alert(treeNode ? treeNode.tId + ", " + treeNode.name : "isRoot");
+};
+var setting = {
+	callback: {
+		onRightClick: zTreeOnRightClick
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.check.autoCheckTrigger.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.check.autoCheckTrigger.html new file mode 100644 index 0000000..b8b04cc --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.check.autoCheckTrigger.html @@ -0,0 +1,29 @@ +
+
+

Booleansetting.check.autoCheckTrigger

+

Overview[ depends on jquery.ztree.excheck js ]

+
+

+
+

When node is automatically checked or unchecked, this parameter used to set to trigger 'beforeCheck / onCheck' callback. It is valid when [setting.check.enable = true & setting.check.chkStyle = "checkbox"]

+

1. If you set 'setting.check.chkboxType' to { "Y": "", "N": "" }, will not automatically checked or unchecked.

+

2. If you turn on the trigger and there are many more nodes, will affect the performance, because the check or uncheck node can cause many nodes to be automatically checked or unchecked, it will trigger a lot of callbacks, according to the need to decide whether to use this feature.

+

Default: false

+
+
+

Boolean Format

+
+

true means: trigger callback

+

false means: don't trigger callback

+
+

Examples of setting

+

1. When node is automatically checked or unchecked, zTree trigger 'beforeCheck / onCheck' callback.

+
var setting = {
+	check: {
+		enable: true,
+		autoCheckTrigger: true
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.check.chkDisabledInherit.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.check.chkDisabledInherit.html new file mode 100644 index 0000000..98d824e --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.check.chkDisabledInherit.html @@ -0,0 +1,28 @@ +
+
+

Booleansetting.check.chkDisabledInherit

+

Overview[ depends on jquery.ztree.excheck js ]

+
+

+
+

When the parent node's 'chkDisabled' attribute is true, set the child nodes automatically inherit the 'chkDisabled' attribute. It is valid when [setting.check.enable = true]

+

1. Only be used to initialize the nodes, easy batch operations. Please use the 'updateNode' method modify existing node.

+

Default: false

+
+
+

Boolean Format

+
+

true means: When add new child nodes, if parent node's 'chkDisabled' attribute is true, the child nodes automatically inherit the 'chkDisabled' attribute.

+

false means: When add new child nodes, the child nodes don't inherit the 'chkDisabled' attribute from parent node.

+
+

Examples of setting

+

1. When add new child nodes, the child nodes automatically inherit the 'chkDisabled' attribute from parent node.

+
var setting = {
+	check: {
+		enable: true,
+		chkDisabledInherit: true
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.check.chkStyle.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.check.chkStyle.html new file mode 100644 index 0000000..d42e757 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.check.chkStyle.html @@ -0,0 +1,48 @@ +
+
+

Stringsetting.check.chkStyle

+

Overview[ depends on jquery.ztree.excheck js ]

+
+

+
+

Use the checkbox or radio. It is valid when [setting.check.enable = true]

+

Default: "checkbox"

+
+
+

String Format

+
+

When chkStyle = "checkbox", zTree show checkbox, and 'setting.check.chkboxType' attribute is valid. +
When chkStyle = "radio", zTree show radio, and 'setting.check.radioType' attribute is valid.

+

Please note that letter case, do not change.

+
+

checkbox States Descriptions

+
+

+
+

not checked; If node is parent, so its child nodes have been not checked. when mouse over:

+

not checked; (only parent node) some of its child nodes have been checked. when mouse over:

+

be checked; If node is parent, so its all child nodes have been checked. when mouse over:

+

be checked; (only parent node) some of its child nodes or all have been not checked. when mouse over:

+
+
+

radio States Descriptions

+
+

+
+

not checked; If node is parent, so its child have been not checked. when mouse over:

+

not checked; (only parent node) some of its child have been checked. when mouse over:

+

be checked; If node is parent, so its child have been not checked. when mouse over:

+

be checked; (only parent node) some of its child have been checked. when mouse over:

+
+
+

Examples of setting

+

1. use radio

+
var setting = {
+	check: {
+		enable: true,
+		chkStyle: "radio"
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.check.chkboxType.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.check.chkboxType.html new file mode 100644 index 0000000..5cecc9e --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.check.chkboxType.html @@ -0,0 +1,31 @@ +
+
+

JSONsetting.check.chkboxType

+

Overview[ depends on jquery.ztree.excheck js ]

+
+

+
+

When one node is checked or unchecked, control its parent node and its child node auto checked or unchecked. It is valid when [setting.check.enable = true & setting.check.chkStyle = "checkbox"]

+

Default: { "Y": "ps", "N": "ps" }

+
+
+

JSON Format

+
+

"Y" attribute use to set auto check after checkbox was checked. +
"N" attribute use to set auto uncheck after checkbox was unchecked. +
If value has "p", so parent nodes will be checked or unchecked. +
If value has "s", so child nodes will be checked or unchecked.

+

Please note that letter case, do not change.

+
+

Examples of setting

+

1. If check the node, so only auto check parent nodes; If uncheck the node, so only auto uncheck child nodes;

+
var setting = {
+	check: {
+		enable: true,
+		chkStyle: "checkbox",
+		chkboxType: { "Y": "p", "N": "s" }
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.check.enable.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.check.enable.html new file mode 100644 index 0000000..0236b5f --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.check.enable.html @@ -0,0 +1,26 @@ +
+
+

Booleansetting.check.enable

+

Overview[ depends on jquery.ztree.excheck js ]

+
+

+
+

Set to use checkbox or radio in zTree

+

Default: false

+
+
+

Boolean Format

+
+

true means: use the checkbox or radio

+

false means: don't use the checkbox or radio

+
+

Examples of setting

+

1. use the checkbox

+
var setting = {
+	check: {
+		enable: true
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.check.nocheckInherit.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.check.nocheckInherit.html new file mode 100644 index 0000000..758b437 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.check.nocheckInherit.html @@ -0,0 +1,28 @@ +
+
+

Booleansetting.check.nocheckInherit

+

Overview[ depends on jquery.ztree.excheck js ]

+
+

+
+

When the parent node's 'nocheck' attribute is true, set the child nodes automatically inherit the 'nocheck' attribute. It is valid when [setting.check.enable = true]

+

1. Only be used to initialize the nodes, easy batch operations. Please use the 'updateNode' method modify existing node.

+

Default: false

+
+
+

Boolean Format

+
+

true means: When add new child nodes, if parent node's 'nocheck' attribute is true, the child nodes automatically inherit the 'nocheck' attribute.

+

false means: When add new child nodes, the child nodes don't inherit the 'nocheck' attribute from parent node.

+
+

Examples of setting

+

1. When add new child nodes, the child nodes automatically inherit the 'nocheck' attribute from parent node.

+
var setting = {
+	check: {
+		enable: true,
+		nocheckInherit: true
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.check.radioType.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.check.radioType.html new file mode 100644 index 0000000..be867d7 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.check.radioType.html @@ -0,0 +1,29 @@ +
+
+

Stringsetting.check.radioType

+

Overview[ depends on jquery.ztree.excheck js ]

+
+

+
+

The group about radio. It is valid when [setting.check.enable = true & setting.check.chkStyle = "radio"]

+

Default: "level"

+
+
+

String Format

+
+

When radioType = "level", will be grouped with same level nodes which have the same parent node. +
When radioType = "all", will be grouped with all nodes.

+

Please note that letter case, do not change.

+
+

Examples of setting

+

1. Set the group about radio is all nodes.

+
var setting = {
+	check: {
+		enable: true,
+		chkStyle: "radio",
+		radioType: "all"
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.data.keep.leaf.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.data.keep.leaf.html new file mode 100644 index 0000000..71c573e --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.data.keep.leaf.html @@ -0,0 +1,28 @@ +
+
+

Booleansetting.data.keep.leaf

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

The leaf node's lock, the leaf node will lock the 'isParent' attribute to false.

+

Default: false

+
+
+

Boolean Format

+
+

true means: lock the leaf node, and the node which 'isParent' attribute is false can't add child nodes.

+

false means: don't lock the leaf node, and the node which 'isParent' attribute is false can add child nodes.

+
+

Examples of setting

+

1. lock the leaf node

+
var setting = {
+	data: {
+		keep: {
+			leaf: true
+		}
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.data.keep.parent.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.data.keep.parent.html new file mode 100644 index 0000000..5bab2f1 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.data.keep.parent.html @@ -0,0 +1,28 @@ +
+
+

Booleansetting.data.keep.parent

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

The parent node's lock, the parent node will lock 'isParent' attribute to true.

+

Default: false

+
+
+

Boolean Format

+
+

true means: lock the parent node, and if remove all of the parent node's child nodes, its 'isParent' attribute still keep to be true..

+

false means: don't lock the parent node, and if remove all of the parent node's child nodes, its 'isParent' attribute will change to be false..

+
+

Examples of setting

+

1. lock the parent node

+
var setting = {
+	data: {
+		keep: {
+			parent: true
+		}
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.data.key.checked.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.data.key.checked.html new file mode 100644 index 0000000..2678cf2 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.data.key.checked.html @@ -0,0 +1,24 @@ +
+
+

Stringsetting.data.key.checked

+

Overview[ depends on jquery.ztree.excheck js ]

+
+

+
+

The node data's attribute to save the checked state.

+

Default: "checked"

+

Please don't set the other node attribute which zTree used. (e.g., checkedOld)

+
+
+

Examples of setting

+

1. set the 'isChecked' attribute to save the checked state.

+
var setting = {
+	data: {
+		key: {
+			checked: "isChecked"
+		}
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.data.key.children.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.data.key.children.html new file mode 100644 index 0000000..321a1a7 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.data.key.children.html @@ -0,0 +1,23 @@ +
+
+

Stringsetting.data.key.children

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

The node data's attribute to save the child nodes.

+

Default: "children"

+
+
+

Examples of setting

+

1. Set the 'nodes' attribute to save the child nodes.

+
var setting = {
+	data: {
+		key: {
+			children: "nodes"
+		}
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.data.key.name.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.data.key.name.html new file mode 100644 index 0000000..0208c55 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.data.key.name.html @@ -0,0 +1,23 @@ +
+
+

Stringsetting.data.key.name

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

The node data's attribute to save the node name.

+

Default: "name"

+
+
+

Examples of setting

+

1. Set the 'ename' attribute to save the node name.

+
var setting = {
+	data: {
+		key: {
+			name: "ename"
+		}
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.data.key.title.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.data.key.title.html new file mode 100644 index 0000000..96540eb --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.data.key.title.html @@ -0,0 +1,24 @@ +
+
+

Stringsetting.data.key.title

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

The node data's attribute to save the 'title' attribute of node DOM. It is valid when [setting.view.showTitle = true]

+

If set it to "", the title of node DOM will be same as 'setting.data.key.name' attribute.

+

Default: ""

+
+
+

Examples of setting

+

1. Set the 'fullName' attribute to save the title of node DOM.

+
var setting = {
+	data: {
+		key: {
+			title: "fullName"
+		}
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.data.key.url.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.data.key.url.html new file mode 100644 index 0000000..e9a08ce --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.data.key.url.html @@ -0,0 +1,24 @@ +
+
+

Stringsetting.data.key.url

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

The node data's attribute to save the node link's url.

+

Special: If the nodes's data can only use the 'url' attribute, and don't use the link to jump feature, you can modify this attribute to any nonexistent attribute.

+

Default: "url"

+
+
+

Examples of setting

+

1. Set the 'xUrl' attribute to save the node link's url.

+
var setting = {
+	data: {
+		key: {
+			url: "xUrl"
+		}
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.data.simpleData.enable.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.data.simpleData.enable.html new file mode 100644 index 0000000..7ea21db --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.data.simpleData.enable.html @@ -0,0 +1,39 @@ +
+
+

Booleansetting.data.simpleData.enable

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

Set zTree's node to accept the simple data format, when zTree is initialized or when ajax get / or when use addNodes method.

+

Don't have to generate the complex nested data.

+

Default: false

+
+
+

Boolean Format

+
+

true means: zTree's node accept the simple data format.

+

false means: zTree's node only accept the nested data format.

+

If set it is true, you must set the other attributes in 'setting.data.simpleData'. (e.g., idKey, pIdKey, rootPId) And let the data satisfy the parent-child relationship.

+
+

Examples of setting

+

1. use the simple data format

+
var setting = {
+	data: {
+		simpleData: {
+			enable: true,
+			idKey: "id",
+			pIdKey: "pId",
+			rootPId: 0,
+		}
+	}
+};
+var treeNodes = [
+    {"id":1, "pId":0, "name":"test1"},
+    {"id":11, "pId":1, "name":"test11"},
+    {"id":12, "pId":1, "name":"test12"},
+    {"id":111, "pId":11, "name":"test111"}
+];
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.data.simpleData.idKey.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.data.simpleData.idKey.html new file mode 100644 index 0000000..43df260 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.data.simpleData.idKey.html @@ -0,0 +1,32 @@ +
+
+

Stringsetting.data.simpleData.idKey

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

The node data's attribute to save node data's unique identifier. It is valid when [setting.data.simpleData.enable = true]

+

Default: "id"

+
+
+

Examples of setting

+

1. use the simple data format

+
var setting = {
+	data: {
+		simpleData: {
+			enable: true,
+			idKey: "id",
+			pIdKey: "pId",
+			rootPId: 0,
+		}
+	}
+};
+var treeNodes = [
+    {"id":1, "pId":0, "name":"test1"},
+    {"id":11, "pId":1, "name":"test11"},
+    {"id":12, "pId":1, "name":"test12"},
+    {"id":111, "pId":11, "name":"test111"}
+];
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.data.simpleData.pIdKey.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.data.simpleData.pIdKey.html new file mode 100644 index 0000000..8378c6e --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.data.simpleData.pIdKey.html @@ -0,0 +1,32 @@ +
+
+

Stringsetting.data.simpleData.pIdKey

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

The node data's attribute to save its parent node data's unique identifier. It is valid when [setting.data.simpleData.enable = true]

+

Default: "pId"

+
+
+

Examples of setting

+

1. use the simple data format

+
var setting = {
+	data: {
+		simpleData: {
+			enable: true,
+			idKey: "id",
+			pIdKey: "pId",
+			rootPId: 0
+		}
+	}
+};
+var treeNodes = [
+    {"id":1, "pId":0, "name":"test1"},
+    {"id":11, "pId":1, "name":"test11"},
+    {"id":12, "pId":1, "name":"test12"},
+    {"id":111, "pId":11, "name":"test111"}
+];
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.data.simpleData.rootPId.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.data.simpleData.rootPId.html new file mode 100644 index 0000000..61c9bbd --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.data.simpleData.rootPId.html @@ -0,0 +1,32 @@ +
+
+

String / Numbersetting.data.simpleData.rootPId

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

Set the default value of root's 'pIdKey' specified attribute values​​. It is valid when [setting.data.simpleData.enable = true]

+

Default: null

+
+
+

Examples of setting

+

1. use the simple data format

+
var setting = {
+	data: {
+		simpleData: {
+			enable: true,
+			idKey: "id",
+			pIdKey: "pId",
+			rootPId: 0
+		}
+	}
+};
+var treeNodes = [
+    {"id":1, "pId":0, "name":"test1"},
+    {"id":11, "pId":1, "name":"test11"},
+    {"id":12, "pId":1, "name":"test12"},
+    {"id":111, "pId":11, "name":"test111"}
+];
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.autoExpandTrigger.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.autoExpandTrigger.html new file mode 100644 index 0000000..804ee66 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.autoExpandTrigger.html @@ -0,0 +1,29 @@ +
+
+

Booleansetting.edit.drag.autoExpandTrigger

+

Overview[ depends on jquery.ztree.exedit js ]

+
+

+
+

When drag node cause the parent node is automatically expanded, set whether to allow to trigger the 'onExpand' callback. It is valid when [setting.edit.enable = true]

+

Default: false

+
+
+

Boolean Format

+
+

true means: trigger the 'onExpand' callback.

+

false means: don't trigger the 'onExpand' callback.

+
+

Examples of setting

+

1. Set to allow to trigger the 'onExpand' callback

+
var setting = {
+	edit: {
+		enable: true,
+		drag: {
+			autoExpandTrigger: true
+		}
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.autoOpenTime.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.autoOpenTime.html new file mode 100644 index 0000000..74982af --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.autoOpenTime.html @@ -0,0 +1,25 @@ +
+
+

Numbersetting.edit.drag.autoOpenTime

+

Overview[ depends on jquery.ztree.exedit js ]

+
+

+
+

Drag to the parent node, the parent node auto expand time interval. (Unit: ms) It is valid when [setting.edit.enable = true]

+

Default: 500

+

Please adjust the value according to needs.

+
+
+

Examples of setting

+

1. When drag node to other parent node, expand it at once.

+
var setting = {
+	edit: {
+		enable: true,
+		drag: {
+			autoOpenTime: 0
+		}
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.borderMax.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.borderMax.html new file mode 100644 index 0000000..edbb752 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.borderMax.html @@ -0,0 +1,25 @@ +
+
+

Numbersetting.edit.drag.borderMax

+

Overview[ depends on jquery.ztree.exedit js ]

+
+

+
+

When drag a node to root, the zTree's inner border width. (Unit: px) It is valid when [setting.edit.enable = true]

+

Default: 10

+

Please adjust the value according to needs.

+
+
+

Examples of setting

+

1. adjust the inner border width is 20px

+
var setting = {
+	edit: {
+		enable: true,
+		drag: {
+			borderMax: 20
+		}
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.borderMin.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.borderMin.html new file mode 100644 index 0000000..e845853 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.borderMin.html @@ -0,0 +1,25 @@ +
+
+

Numbersetting.edit.drag.borderMin

+

Overview[ depends on jquery.ztree.exedit js ]

+
+

+
+

When drag a node to root, the zTree's outer border width. (Unit: px) It is valid when [setting.edit.enable = true]

+

Default: -5

+

Please adjust the value according to needs.

+
+
+

Examples of setting

+

1. adjust the outer border width is 10px

+
var setting = {
+	edit: {
+		enable: true,
+		drag: {
+			borderMin: -10
+		}
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.inner.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.inner.html new file mode 100644 index 0000000..1065df3 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.inner.html @@ -0,0 +1,60 @@ +
+
+

Boolean / Function(treeId, treeNodes, targetNode)setting.edit.drag.inner

+

Overview[ depends on jquery.ztree.exedit js ]

+
+

+
+

When drag one node to the target node, set whether to allow the node to be the target node's child. It is valid when [setting.edit.enable = true]

+

If the target node is root, so zTree will only trigger 'inner' and not trigger 'prev / next'.

+

This function mainly for the appropriate limit drag and drop (auxiliary arrow), it requires a combination of 'prev, next' together, to achieve full functionality.

+

Default: true

+
+
+

Boolean Format

+
+

true means: allow the node to be the target node's child.

+

false means: don't allow the node to be the target node's child.

+
+

Function Parameter Descriptions

+
+

treeIdString

+

zTree unique identifier: treeId, easy for users to control.

+

treeNodesArray(JSON)

+

A collection of the nodes which has been dragged

+

targetNodeJSON

+

JSON data object of the target node which treeNodes are draged over.

+

If the treeNodes will be root node, the targetNode = null

+

Return Boolean

+

return true or false

+
+

Examples of setting & function

+

1. disable to drag the node to the target node's inner.

+
var setting = {
+	edit: {
+		enable: true,
+		drag: {
+			prev: true,
+			next: true,
+			inner: false
+		}
+	}
+};
+......
+

2. disable to drag the node to be root node's child.

+
function canInner(treeId, nodes, targetNode) {
+	return !(targetNode && targetNode.level === 0);
+}
+var setting = {
+	edit: {
+		enable: true,
+		drag: {
+			prev: true,
+			next: true,
+			inner: canInner
+		}
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.isCopy.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.isCopy.html new file mode 100644 index 0000000..1207d2a --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.isCopy.html @@ -0,0 +1,32 @@ +
+
+

Booleansetting.edit.drag.isCopy

+

Overview[ depends on jquery.ztree.exedit js ]

+
+

+
+

When drag-drop node, set whether to allow to copy node. It is valid when [setting.edit.enable = true]

+

Default: true

+
+
+

Rules Description

+
+

1. If isCopy = true and isMove = true, when drag-drop node, press Ctrl-Key or Cmd-key can copy node, don't press Ctrl-Key or Cmd-key can move node.

+

2. If isCopy = true and isMove = false, when drag-drop node, will copy node.

+

3. If isCopy = false and isMove = true, when drag-drop node, will move node.

+

4. If isCopy = false and isMove = false, so disable to drag-drop node.

+
+

Examples of setting

+

1. all of the drag-drop operation will copy node.

+
var setting = {
+	edit: {
+		enable: true,
+		drag: {
+			isCopy: true,
+			isMove: false
+		}
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.isMove.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.isMove.html new file mode 100644 index 0000000..e4a7ca3 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.isMove.html @@ -0,0 +1,32 @@ +
+
+

Booleansetting.edit.drag.isMove

+

Overview[ depends on jquery.ztree.exedit js ]

+
+

+
+

When drag-drop node, set whether to allow to move node. It is valid when [setting.edit.enable = true]

+

Default: true

+
+
+

Rules Description

+
+

1. If isCopy = true and isMove = true, when drag-drop node, press Ctrl-Key or Cmd-key can copy node, don't press Ctrl-Key or Cmd-key can move node.

+

2. If isCopy = true and isMove = false, when drag-drop node, will copy node.

+

3. If isCopy = false and isMove = true, when drag-drop node, will move node.

+

4. If isCopy = false and isMove = false, so disable to drag-drop node.

+
+

Examples of setting

+

1. all of the drag-drop operation will move node.

+
var setting = {
+	edit: {
+		enable: true,
+		drag: {
+			isCopy: false,
+			isMove: true
+		}
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.maxShowNodeNum.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.maxShowNodeNum.html new file mode 100644 index 0000000..dbc3ae4 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.maxShowNodeNum.html @@ -0,0 +1,25 @@ +
+
+

Numbersetting.edit.drag.maxShowNodeNum

+

Overview[ depends on jquery.ztree.exedit js ]

+
+

+
+

When dragging more than one sibling node, the floating layer shows the maximum number of nodes. zTree using '...' instead of redundant nodes. It is valid when [setting.edit.enable = true]

+

Default: 5

+

Please adjust the value according to needs.

+
+
+

Examples of setting

+

1. Set the maximum number is 10

+
var setting = {
+	edit: {
+		enable: true,
+		drag: {
+			maxShowNodeNum: 10
+		}
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.minMoveSize.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.minMoveSize.html new file mode 100644 index 0000000..8270a99 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.minMoveSize.html @@ -0,0 +1,25 @@ +
+
+

Numbersetting.edit.drag.minMoveSize

+

Overview[ depends on jquery.ztree.exedit js ]

+
+

+
+

The minimum offset which used to determine the drag operator start. (Unit: px) It is valid when [setting.edit.enable = true]

+

Please adjust the value according to needs. Note: If it is too small, will easily lead to misoperation when you click mouse.

+

Default: 5

+
+
+

Examples of setting

+

1. Set the minimum offset is 10px.

+
var setting = {
+	edit: {
+		enable: true,
+		drag: {
+			minMoveSize: 10
+		}
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.next.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.next.html new file mode 100644 index 0000000..82eb6fb --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.next.html @@ -0,0 +1,59 @@ +
+
+

Boolean / Function(treeId, treeNodes, targetNode)setting.edit.drag.next

+

Overview[ depends on jquery.ztree.exedit js ]

+
+

+
+

When drag one node to the target node, set whether to allow the node to be the target node's next sibling. It is valid when [setting.edit.enable = true]

+

If the target node is root, so zTree will only trigger 'inner' and not trigger 'prev / next'.

+

This function mainly for the appropriate limit drag and drop (auxiliary arrow), it requires a combination of 'prev, inner' together, to achieve full functionality.

+

Default: true

+
+
+

Boolean Format

+
+

true means: allow the node to be the target node's next sibling.

+

false means: don't allow the node to be the target node's next sibling.

+
+

Function Parameter Descriptions

+
+

treeIdString

+

zTree unique identifier: treeId, easy for users to control.

+

treeNodesArray(JSON)

+

A collection of the nodes which has been dragged

+

targetNodeJSON

+

JSON data object of the target node which treeNodes are draged over.

+

Return Boolean

+

return true or false

+
+

Examples of setting & function

+

1. disable to drag the node to the target node's next sibling.

+
var setting = {
+	edit: {
+		enable: true,
+		drag: {
+			prev: true,
+			next: false,
+			inner: true
+		}
+	}
+};
+......
+

2. disable to drag the node to be all of the parent nodes's next sibling.

+
function canNext(treeId, nodes, targetNode) {
+	return !targetNode.isParent;
+}
+var setting = {
+	edit: {
+		enable: true,
+		drag: {
+			prev: true,
+			next: canNext,
+			inner: true
+		}
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.prev.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.prev.html new file mode 100644 index 0000000..de6f0c8 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.prev.html @@ -0,0 +1,59 @@ +
+
+

Boolean / Function(treeId, treeNodes, targetNode)setting.edit.drag.prev

+

Overview[ depends on jquery.ztree.exedit js ]

+
+

+
+

When drag one node to the target node, set whether to allow the node to be the target node's previous sibling. It is valid when [setting.edit.enable = true]

+

If the target node is root, so zTree will only trigger 'inner' and not trigger 'prev / next'.

+

This function mainly for the appropriate limit drag and drop (auxiliary arrow), it requires a combination of 'next, inner' together, to achieve full functionality.

+

Default: true

+
+
+

Boolean Format

+
+

true means: allow the node to be the target node's previous sibling.

+

false means: don't allow the node to be the target node's previous sibling.

+
+

Function Parameter Descriptions

+
+

treeIdString

+

zTree unique identifier: treeId, easy for users to control.

+

treeNodesArray(JSON)

+

A collection of the nodes which has been dragged

+

targetNodeJSON

+

JSON data object of the target node which treeNodes are draged over.

+

Return Boolean

+

return true or false

+
+

Examples of setting & function

+

1. disable to drag the node to the target node's previous sibling.

+
var setting = {
+	edit: {
+		enable: true,
+		drag: {
+			prev: false,
+			next: true,
+			inner: true
+		}
+	}
+};
+......
+

2. disable to drag the node to be all of the parent nodes's previous sibling.

+
function canPrev(treeId, nodes, targetNode) {
+	return !targetNode.isParent;
+}
+var setting = {
+	edit: {
+		enable: true,
+		drag: {
+			prev: canPrev,
+			next: true,
+			inner: true
+		}
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.editNameSelectAll.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.editNameSelectAll.html new file mode 100644 index 0000000..a030359 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.editNameSelectAll.html @@ -0,0 +1,27 @@ +
+
+

Booleansetting.edit.editNameSelectAll

+

Overview[ depends on jquery.ztree.exedit js ]

+
+

+
+

When edit node's name, the text in input is selected or unselected. It is valid when [setting.edit.enable = true]

+

Default: false

+
+
+

Boolean Format

+
+

true means: when show the input, the text in input is selected

+

false means: when show the input, the text in input is not selected

+
+

Examples of setting

+

1. When edit node's name, the text in input is selected.

+
var setting = {
+	edit: {
+		enable: true,
+		editNameSelectAll: true
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.enable.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.enable.html new file mode 100644 index 0000000..ec9d2b3 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.enable.html @@ -0,0 +1,39 @@ +
+
+

Booleansetting.edit.enable

+

Overview[ depends on jquery.ztree.exedit js ]

+
+

+
+

Set zTree is in edit mode

+

Please set this attribute before zTree initialization. If you need to change the edit mode after the initialization, please use zTreeObj.setEditable() method.

+

Default: false

+
+
+

Boolean Format

+
+

true means: zTree is in edit mode.

+

false means: zTree is not in edit mode.

+
+

Editing Rules Description

+
+

1. When click the node, it will not open 'node.url' specified URL. +
2. Support for dynamic tree editing. +
3. You can drag-drop nodes, and support drag-drop nodes between multiple trees. +
4. Support use drag-drop to copy or move the node. (Reference: setting.edit.drag.isCopy / setting.edit.drag.isMove) +
5. You can use the Edit button to modify the name attribute. +
6. You can use the Remove button to remove the node. +
+

+

Please note that letter case, do not change.

+
+

Examples of setting

+

1. edit the tree

+
var setting = {
+	edit: {
+		enable: true
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.removeTitle.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.removeTitle.html new file mode 100644 index 0000000..e217527 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.removeTitle.html @@ -0,0 +1,48 @@ +
+
+

String / Function(treeId, treeNode)setting.edit.removeTitle

+

Overview[ depends on jquery.ztree.exedit js ]

+
+

+
+

the title of the remove button DOM. It is valid when [setting.edit.enable = true & setting.edit.showRemoveBtn = true]

+

Default: "remove"

+
+
+

String Format

+
+

When the mouse over the remove button, the browser auto pop-up message content.

+
+

Function Parameter Descriptions

+
+

treeIdString

+

zTree unique identifier: treeId, easy for users to control.

+

treeNodeJSON

+

JSON data object of the node which show the remove button

+

Return String

+

Return value is same as 'String Format'

+
+

Examples of setting & function

+

1. Set title is 'remove the node' about all the remove button

+
var setting = {
+	edit: {
+		enable: true,
+		showRemoveBtn: true,
+		removeTitle: "remove the node"
+	}
+};
+......
+

2. Set title is 'remove the parent node' about the parent node, and is 'remove the leaf node' about the leaf node

+
function setRemoveTitle(treeId, treeNode) {
+	return treeNode.isParent ? "remove the parent node":"remove the leaf node";
+}
+var setting = {
+	edit: {
+		enable: true,
+		showRemoveBtn: true,
+		removeTitle: setRemoveTitle
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.renameTitle.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.renameTitle.html new file mode 100644 index 0000000..b8ce5a6 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.renameTitle.html @@ -0,0 +1,48 @@ +
+
+

String / Function(treeId, treeNode)setting.edit.renameTitle

+

Overview[ depends on jquery.ztree.exedit js ]

+
+

+
+

the title of the rename button DOM. It is valid when [setting.edit.enable = true & setting.edit.showRenameBtn = true]

+

Default: "rename"

+
+
+

String Format

+
+

When the mouse over the rename button, the browser auto pop-up message content.

+
+

Function Parameter Descriptions

+
+

treeIdString

+

zTree unique identifier: treeId, easy for users to control.

+

treeNodeJSON

+

JSON data object of the node which show the rename button

+

Return String

+

return value is same as 'String Format'

+
+

Examples of setting & function

+

1. Set title is 'rename the node' about all the rename button

+
var setting = {
+	edit: {
+		enable: true,
+		showRenameBtn: true,
+		renameTitle: "rename the node"
+	}
+};
+......
+

2. Set title is 'rename the parent node' about the parent node, and is 'rename the leaf node' about the leaf node

+
function setRenameTitle(treeId, treeNode) {
+	return treeNode.isParent ? "rename the parent node":"rename the leaf node";
+}
+var setting = {
+	edit: {
+		enable: true,
+		showRenameBtn: true,
+		renameTitle: setRenameTitle
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.showRemoveBtn.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.showRemoveBtn.html new file mode 100644 index 0000000..f0f1fe1 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.showRemoveBtn.html @@ -0,0 +1,50 @@ +
+
+

Boolean / Function(treeId, treeNode)setting.edit.showRemoveBtn

+

Overview[ depends on jquery.ztree.exedit js ]

+
+

+
+

Set to show or hide the remove button. It is valid when [setting.edit.enable = true]

+

When you click the remove button:

+

1. zTree will trigger the setting.callback.beforeRemove callback, and you can decide whether to allow delete.

+

2. If you don't set the 'beforeRemove' or the 'beforeRemove' callback return true, so zTree will trigger the setting.callback.onRemove callback after remove the node.

+

Default: true

+
+
+

Boolean Format

+
+

true means: show the remove button

+

false means: hide the remove button

+
+

Function Parameter Descriptions

+
+

treeIdString

+

zTree unique identifier: treeId, easy for users to control.

+

treeNodeJSON

+

JSON data object of the node which show the remove button

+

Return Boolean

+

Return value is same as 'Boolean Format'

+
+

Examples of setting & function

+

1. Hide the remove button

+
var setting = {
+	edit: {
+		enable: true,
+		showRemoveBtn: false
+	}
+};
+......
+

2. Hide the remove button of parent node

+
function setRemoveBtn(treeId, treeNode) {
+	return !treeNode.isParent;
+}
+var setting = {
+	edit: {
+		enable: true,
+		showRemoveBtn: setRemoveBtn
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.showRenameBtn.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.showRenameBtn.html new file mode 100644 index 0000000..4fe2f58 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.showRenameBtn.html @@ -0,0 +1,52 @@ +
+
+

Boolean / Function(treeId, treeNode)setting.edit.showRenameBtn

+

Overview[ depends on jquery.ztree.exedit js ]

+
+

+
+

Set to show or hide the rename button. It is valid when [setting.edit.enable = true]

+

When you click the rename button:

+

1. Click the rename button, you can rename the node.

+

2. After rename operation (the input DOM blur or press the Enter Key), zTree will trigger the setting.callback.beforeRename callback, and you can decide whether to allow rename.

+

3. If the 'beforeRename' callback return false, so zTree will keep the edit status. (Press the ESC key, can be restored to the original state.

+

4. If you don't set the 'beforeRename' or the 'beforeRename' callback return true, so zTree will trigger the setting.callback.onRename callback after rename the node.

+

Default: true

+
+
+

Boolean Format

+
+

true means: show the rename button

+

false means: hide the rename button

+
+

Function Parameter Descriptions

+
+

treeIdString

+

zTree unique identifier: treeId, easy for users to control.

+

treeNodeJSON

+

JSON data object of the node which show the rename button

+

Return Boolean

+

Return value is same as 'Boolean Format'

+
+

Examples of setting & function

+

1. Hide the rename button

+
var setting = {
+	edit: {
+		enable: true,
+		showRenameBtn: false
+	}
+};
+......
+

2. Hide the rename button of parent node

+
function setRenameBtn(treeId, treeNode) {
+	return !treeNode.isParent;
+}
+var setting = {
+	edit: {
+		enable: true,
+		showRenameBtn: setRenameBtn
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.treeId.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.treeId.html new file mode 100644 index 0000000..e4b04b3 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.treeId.html @@ -0,0 +1,14 @@ +
+
+

Stringsetting.treeId

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

zTree unique identifier. After the initialization, it equals to the id attribute value of the user-defined zTree container.

+

Do not initialize or modify it, it is an internal argument.

+
+
+ +
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.treeObj.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.treeObj.html new file mode 100644 index 0000000..30eb66c --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.treeObj.html @@ -0,0 +1,14 @@ +
+
+

Objectsetting.treeObj

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

zTree DOM's jQuery object, the main function: easy to internal operations.

+

Do not initialize or modify it, it is an internal argument.

+
+
+ +
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.addDiyDom.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.addDiyDom.html new file mode 100644 index 0000000..fa22bef --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.addDiyDom.html @@ -0,0 +1,40 @@ +
+
+

Function(treeId, treeNode)setting.view.addDiyDom

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

This function used to display the custom control on the node.

+

1. If you have huge node data, please note: this function will affect the initialization performance. If not required, it is recommended not to use this function.

+

2. This function is an advanced application, please make sure that a better understanding of zTree before you use it.

+

Default: null

+
+
+

Function Parameter Descriptions

+
+

treeIdString

+

zTree unique identifier: treeId, easy for users to control.

+

treeNodeJSON

+

JSON data object of the node which display the custom control.

+
+

Examples of setting & function

+

1. Display button in all nodes.

+
var setting = {
+	view: {
+		addDiyDom: addDiyDom
+	}
+};
+function addDiyDom(treeId, treeNode) {
+	var aObj = $("#" + treeNode.tId + "_a");
+	if ($("#diyBtn_"+treeNode.id).length>0) return;
+	var editStr = "<span id='diyBtn_space_" +treeNode.id+ "' > </span>"
+		+ "<button type='button' class='diyBtn1' id='diyBtn_" + treeNode.id
+		+ "' title='"+treeNode.name+"' onfocus='this.blur();'></button>";
+	aObj.append(editStr);
+	var btn = $("#diyBtn_"+treeNode.id);
+	if (btn) btn.bind("click", function(){alert("diy Button for " + treeNode.name);});
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.addHoverDom.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.addHoverDom.html new file mode 100644 index 0000000..1ea8b6d --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.addHoverDom.html @@ -0,0 +1,45 @@ +
+
+

Function(treeId, treeNode)setting.view.addHoverDom

+

Overview[ depends on jquery.ztree.exedit js ]

+
+

+
+

Used to display custom control when mouse move over the node. (e.g. the rename and remove button)

+

If you use this function, so must set setting.view.removeHoverDom, please make sure that a better understanding of zTree before you use it.

+

Default: null

+
+
+

Function Parameter Descriptions

+
+

treeIdString

+

zTree unique identifier: treeId, easy for users to control.

+

treeNodeJSON

+

JSON data object of the node which need to display the custom control.

+
+

Examples of setting & function

+

1. Display a button when mouse move over the node, and hide the button when mouse move out.

+
var setting = {
+	view: {
+		addHoverDom: addHoverDom,
+		removeHoverDom: removeHoverDom,
+		......
+	}
+};
+function addHoverDom(treeId, treeNode) {
+	var aObj = $("#" + treeNode.tId + "_a");
+	if ($("#diyBtn_"+treeNode.id).length>0) return;
+	var editStr = "<span id='diyBtn_space_" +treeNode.id+ "' > </span>"
+		+ "<button type='button' class='diyBtn1' id='diyBtn_" + treeNode.id
+		+ "' title='"+treeNode.name+"' onfocus='this.blur();'></button>";
+	aObj.append(editStr);
+	var btn = $("#diyBtn_"+treeNode.id);
+	if (btn) btn.bind("click", function(){alert("diy Button for " + treeNode.name);});
+};
+function removeHoverDom(treeId, treeNode) {
+	$("#diyBtn_"+treeNode.id).unbind().remove();
+	$("#diyBtn_space_" +treeNode.id).unbind().remove();
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.autoCancelSelected.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.autoCancelSelected.html new file mode 100644 index 0000000..44ab90d --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.autoCancelSelected.html @@ -0,0 +1,27 @@ +
+
+

Booleansetting.view.autoCancelSelected

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

When click the selected node while pressing the Ctrl-key or Cmd-key, allow to cancel selected the node.

+

If you don't need this function, please set to false.

+

Default: true

+
+
+

Boolean Format

+
+

true means: press the Ctrl-key or Cmd-key, can cancel selected node.

+

false means: press the Ctrl-key or Cmd-key, can't cancel selected node.

+
+

Examples of setting

+

1. Press the Ctrl-key or Cmd-key, can't cancel selected node.

+
var setting = {
+	view: {
+		autoCancelSelected: false
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.dblClickExpand.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.dblClickExpand.html new file mode 100644 index 0000000..2517624 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.dblClickExpand.html @@ -0,0 +1,45 @@ +
+
+

Boolean / Function(treeId, treeNode)setting.view.dblClickExpand

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

When double-click the parent node, 'dblClickExpand' is used to decide whether to expand the parent node.

+

Default: true

+
+
+

Boolean Format

+
+

true means: When double-click the parent node, zTree will expand the parent node.

+

false means: When double-click the parent node, zTree will not expand the parent node.

+
+

Function Pamameter Descriptions

+
+

treeIdString

+

zTree unique identifier: treeId, easy for users to control.

+

treeNodeJSON

+

JSON data object of the node which be double-clicked.

+

Return Boolean

+

Return value is same as 'Boolean Format'

+
+

Example of setting

+

1. When double-click the parent node, zTree will not expand the parent node.

+
var setting = {
+	view: {
+		dblClickExpand: false
+	}
+};
+......
+

2. When double-click the parent node, zTree will expand the parent node which level>0.

+
function dblClickExpand(treeId, treeNode) {
+	return treeNode.level > 0;
+};
+var setting = {
+	view: {
+		dblClickExpand: dblClickExpand
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.expandSpeed.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.expandSpeed.html new file mode 100644 index 0000000..1911e74 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.expandSpeed.html @@ -0,0 +1,31 @@ +
+
+

String / Numbersetting.view.expandSpeed

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

The animation speed of expand or collapse node. As same as 'speed' parameter in jQuery

+

In order to ensure zTree operating speed, if use the IE6, zTree will not use animation.

+

Default: "fast"

+
+
+

String Format

+
+

e.g. "slow", "normal", or "fast"

+

If set to "", zTree will not use animation.

+
+

Number Format

+
+

How long the animation will run. [Unit: ms] (e.g. 1000)

+
+

Examples of setting

+

1. Set the animation speed to slow

+
var setting = {
+	view: {
+		expandSpeed: "slow"
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.fontCss.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.fontCss.html new file mode 100644 index 0000000..1ad5f51 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.fontCss.html @@ -0,0 +1,42 @@ +
+
+

JSON / Function(treeId, treeNode)setting.view.fontCss

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

Personalized text style, only applies to <A> object in the node DOM

+

Default: {}

+
+
+

JSON Format

+
+

As same as .css() method in jQuery. e.g. {color:"#ff0011", background:"blue"}

+
+

Function Parameter Descriptions

+
+

treeIdString

+

zTree unique identifier: treeId, easy for users to control.

+

treeNodeJSON

+

JSON data object of the node which use the personalized text style

+

Return JSON

+

Return value is same as 'JSON Format'. e.g. {color:"#ff0011", background:"blue"}

+
+

Examples of setting & function

+

1. Don't modify css file, and set the node name's color to red

+
var setting = {
+	view: {
+		fontCss : {color:"red"}
+	}
+};
+

2. Don't modify css file, and set the root node name's color to red

+
function setFontCss(treeId, treeNode) {
+	return treeNode.level == 0 ? {color:"red"} : {};
+};
+var setting = {
+	view: {
+		fontCss: setFontCss
+	}
+};
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.nameIsHTML.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.nameIsHTML.html new file mode 100644 index 0000000..4fe19ad --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.nameIsHTML.html @@ -0,0 +1,28 @@ +
+
+

Booleansetting.view.nameIsHTML

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

Set to use HTML in 'name' attribute.

+

If allow HTML, please do check to avoid security issues, e.g. JavaScript Injection...

+

Default: false

+
+
+

Boolean Format

+
+

true means: 'name' attribute can be HTML.

+

false means: 'name' attribute is only TEXT.

+
+

Examples of setting

+

1. Set to allow HTML

+
var setting = {
+	view: {
+		nameIsHTML: true
+	}
+};
+var node = {"name":"<font color='red'>test</font>"};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.removeHoverDom.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.removeHoverDom.html new file mode 100644 index 0000000..0c70aff --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.removeHoverDom.html @@ -0,0 +1,45 @@ +
+
+

Function(treeId, treeNode)setting.view.removeHoverDom

+

Overview[ depends on jquery.ztree.exedit js ]

+
+

+
+

Used to hide custom control when mouse move out the node. (e.g. the rename and remove button)

+

If you use this function, so must set setting.view.addHoverDom, please make sure that a better understanding of zTree before you use it.

+

Default: null

+
+
+

Function Parameter Descriptions

+
+

treeIdString

+

zTree unique identifier: treeId, easy for users to control.

+

treeNodeJSON

+

JSON data object of the node which need to hide the custom control.

+
+

Examples of setting & function

+

1. Display a button when mouse move over the node, and hide the button when mouse move out.

+
var setting = {
+	view: {
+		addHoverDom: addHoverDom,
+		removeHoverDom: removeHoverDom,
+		......
+	}
+};
+function addHoverDom(treeId, treeNode) {
+	var aObj = $("#" + treeNode.tId + "_a");
+	if ($("#diyBtn_"+treeNode.id).length>0) return;
+	var editStr = "<span id='diyBtn_space_" +treeNode.id+ "' > </span>"
+		+ "<button type='button' class='diyBtn1' id='diyBtn_" + treeNode.id
+		+ "' title='"+treeNode.name+"' onfocus='this.blur();'></button>";
+	aObj.append(editStr);
+	var btn = $("#diyBtn_"+treeNode.id);
+	if (btn) btn.bind("click", function(){alert("diy Button for " + treeNode.name);});
+};
+function removeHoverDom(treeId, treeNode) {
+	$("#diyBtn_"+treeNode.id).unbind().remove();
+	$("#diyBtn_space_" +treeNode.id).unbind().remove();
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.selectedMulti.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.selectedMulti.html new file mode 100644 index 0000000..074fb68 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.selectedMulti.html @@ -0,0 +1,28 @@ +
+
+

Booleansetting.view.selectedMulti

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

Set whether to allow select multiple nodes.

+

Default: true

+
+
+

Boolean Format

+
+

true mean: you can select multiple nodes.

+

false mean: you can only select one node.

+

1. Press Ctrl-key or Cmd-key, you can select multiple nodes.

+

2、This attribute don't affect the feature of cancel select node. ( please see setting.view.autoCancelSelected )

+
+

Examples of setting

+

1. Only select one node.

+
var setting = {
+	view: {
+		selectedMulti: false
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.showIcon.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.showIcon.html new file mode 100644 index 0000000..9adf003 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.showIcon.html @@ -0,0 +1,45 @@ +
+
+

Boolean / Function(treeId, treeNode)setting.view.showIcon

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

Set to show or hide node icon.

+

Default: true

+
+
+

Boolean Format

+
+

true means: show node icon.

+

false means: hide node icon.

+
+

Function Parameter Descriptions

+
+

treeIdString

+

zTree unique identifier: treeId, easy for users to control.

+

treeNodeJSON

+

JSON data object of the node which need to show icon.

+

Return Boolean

+

Return value is same as 'Boolean Format'

+
+

Examples of setting & function

+

1. Hide node icon

+
var setting = {
+	view: {
+		showIcon: false
+	}
+};
+......
+

2. Hide node icon which level=2

+
function showIconForTree(treeId, treeNode) {
+	return treeNode.level != 2;
+};
+var setting = {
+	view: {
+		showIcon: showIconForTree
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.showLine.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.showLine.html new file mode 100644 index 0000000..a554014 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.showLine.html @@ -0,0 +1,26 @@ +
+
+

Booleansetting.view.showLine

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

Set to show or hide line.

+

Default: true

+
+
+

Boolean Format

+
+

true means: show line.

+

false means: hide line.

+
+

Examples of setting

+

1. Hide line

+
var setting = {
+	view: {
+		showLine: false
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.showTitle.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.showTitle.html new file mode 100644 index 0000000..66bb26e --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.showTitle.html @@ -0,0 +1,47 @@ +
+
+

Boolean / Function(treeId, treeNode)setting.view.showTitle

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

Set to show or hide the 'title' attribute of node DOM.

+

Please see the setting.data.key.title attribute

+

Default: true

+
+
+

Boolean Format

+
+

true means: show the 'title' attribute of node DOM.

+

false means: hide the 'title' attribute of node DOM.

+

When setting.view.showTitle = true & setting.data.key.title = '', zTree will set the 'setting.data.key.name' attribute to the 'setting.data.key.title'.

+
+

Function Parameter Descriptions

+
+

treeIdString

+

zTree unique identifier: treeId, easy for users to control.

+

treeNodeJSON

+

JSON data object of the node which need to show title.

+

Return Boolean

+

Return value is same as 'Boolean Format'

+
+

Examples of setting & function

+

1. Hide the 'title' attribute of node DOM.

+
var setting = {
+	view: {
+		showTitle: false
+	}
+};
+......
+

2. Hide the 'title' attribute of node DOM which level=2.

+
function showTitleForTree(treeId, treeNode) {
+	return treeNode.level != 2;
+};
+var setting = {
+	view: {
+		showTitle: showTitleForTree
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.txtSelectedEnable.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.txtSelectedEnable.html new file mode 100644 index 0000000..a380930 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.txtSelectedEnable.html @@ -0,0 +1,26 @@ +
+
+

Booleansetting.view.txtSelectedEnable

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

Set to allow or don't allow to select the text which in zTree's DOM.

+

Default: false

+
+
+

Boolean Format

+
+

true means: Allow to select the txt which in zTree's DOM.

+

false means: Don't allow to select the txt which in zTree's DOM.

+
+

Examples of setting & function

+

1. Allow to select the txt which in zTree's DOM.

+
var setting = {
+	view: {
+		txtSelectedEnable: true
+	}
+};
+......
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.check_Child_State.html b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.check_Child_State.html new file mode 100644 index 0000000..48efb79 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.check_Child_State.html @@ -0,0 +1,43 @@ +
+
+

NumbertreeNode.check_Child_State

+

Overview[ depends on jquery.ztree.excheck js ]

+
+

+
+

Used to record the node's half-checked state about its all child nodes's checkbox or radio. It is valid when [setting.check.enable = true]

+

zTree v3.x provides treeNode.getCheckStatus () method to get an accurate the half-checked status.

+

Do not initialize or modify it, it is an internal argument.

+

Default: true

+
+
+

Number Format

+
+

Rules:

+ + + + + + + + + + + +
setting.check.checkType = "checkbox"
treeNode.check_Child_StateChecked Status Description
-1Has no child nodes or all child nodes's 'nocheck' attribute is true.
0All of the child nodes has not been checked.
1Some of the child nodes has been checked.
2All of the child nodes has been checked.
+
+ + + + + + + + + + +
setting.check.checkType = "radio"
treeNode.check_Child_StateChecked Status Description
-1Has no child nodes or all child nodes's 'nocheck' attribute is true.
0All of the child nodes has not been checked.
2Some of the child nodes has been checked.
+
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.check_Focus.html b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.check_Focus.html new file mode 100644 index 0000000..77b7359 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.check_Focus.html @@ -0,0 +1,19 @@ +
+
+

BooleantreeNode.check_Focus

+

Overview[ depends on jquery.ztree.excheck js ]

+
+

+
+

Used to record the status which the checkbox or radio get focus. It is valid when [setting.check.enable = true]

+

Do not initialize or modify it, it is an internal argument.

+

Default: false

+
+
+

Boolean Format

+
+

true means: mouse move over the checkbox

+

false means: mouse move out the checkbox

+
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.checked.html b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.checked.html new file mode 100644 index 0000000..8a55f3d --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.checked.html @@ -0,0 +1,32 @@ +
+
+

BooleantreeNode.checked

+

Overview[ depends on jquery.ztree.excheck js ]

+
+

+
+

The checked status about node's checkbox or radio. It is valid when [setting.check.enable = true & treeNode.nocheck = false]

+

1. If change the 'checked' to other attribute, please set the 'setting.data.key.checked' attribute.

+

2. If you create node data, and set 'checked' attribute to true, zTree will check this node's checkbox or radio when zTree is initialized.

+

3. Use the treeObj.checkNode or checkAllNodes or updateNode method, you can check or uncheck the node. Please see the API about these methods.

+

4. zTree support identification string 'true' & 'false'.

+

Default: false

+
+
+

Boolean Format

+
+

true means: check the checkbox or radio when zTree is initialized.

+

false means: uncheck the checkbox or radio when zTree is initialized.

+
+

Examples of treeNode

+

1. check the checkbox when zTree is initialized

+
var nodes = [
+{ "id":1, "name":"test1", checked:true },
+{ "id":2, "name":"test2", checked:true }
+]
+

2. Get the checked status of the first root node

+
var treeObj = $.fn.zTree.getZTreeObj("tree");
+var checked = treeObj.getNodes()[0].checked;
+
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.checkedOld.html b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.checkedOld.html new file mode 100644 index 0000000..ee51626 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.checkedOld.html @@ -0,0 +1,25 @@ +
+
+

BooleantreeNode.checkedOld

+

Overview[ depends on jquery.ztree.excheck js ]

+
+

+
+

The checked status about node's checkbox or radio when zTree was initialized. It is valid when [setting.check.enable = true & treeNode.nocheck = false]

+

1. Do not initialize it, it will be initialized when the node is initialized.

+

2. If you need to achieve special features, you can use the zTreeObj.getChangeCheckedNodes method and modify the value of 'checkedOld' attribute.

+

Default: the value of 'checked' attribute when zTree is initialized

+
+
+

Boolean Format

+
+

true means: the checkbox or radio is checked when zTree is initialized.

+

false means: the checkbox or radio is not checked when zTree is initialized.

+
+

Examples of treeNode

+

1. Get the original checked status of the first root node

+
var treeObj = $.fn.zTree.getZTreeObj("tree");
+var checkedOld = treeObj.getNodes()[0].checkedOld;
+
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.children.html b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.children.html new file mode 100644 index 0000000..d765bb9 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.children.html @@ -0,0 +1,35 @@ +
+
+

Array(JSON)treeNode.children

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

The data collections of node's child nodes.

+

1. If change the 'children' to other attribute, please set the 'setting.data.key.children' attribute.

+

2. If you set to use dynamic tree, when a node is expanded which 'isParent' attribute is true and which has no child nodes, zTree will use ajax to get its child nodes.

+

Default: undefined

+
+
+

Array(JSON) Format

+
+

Standard JSON Data object

+
+

Examples of treeNode

+

1. Use the standard JSON data object.

+
var nodes = [
+{ "id":1, "name":"test1",
+	children: [
+	{ "id":3, "name":"test3"},
+	{ "id":4, "name":"test4"},
+	{ "id":5, "name":"test5"}
+	]
+},
+{ "id":2, "name":"test2"  }
+]
+

2. Get the first root node's child nodes

+
var treeObj = $.fn.zTree.getZTreeObj("tree");
+var nodes = treeObj.getNodes()[0].children;
+
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.chkDisabled.html b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.chkDisabled.html new file mode 100644 index 0000000..7a5fcf3 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.chkDisabled.html @@ -0,0 +1,28 @@ +
+
+

BooleantreeNode.chkDisabled

+

Overview[ depends on jquery.ztree.excheck js ]

+
+

+
+

1. Set node's checkbox / radio to disabled. It is valid when [setting.check.enable = true]

+

2. zTree support identification string 'true' & 'false'.

+

3. Please don't change this attribute of the nodes which have been created. If you want to disable or undisable the nodes, please use 'setChkDisabled()' methods.

+

4. When zTree initialize the nodes, if you need to the child nodes automatically inherit the 'chkDisabled' attribute, please see 'setting.check.chkDisabledInherit'.

+

Default: false

+
+
+

Boolean Format

+
+

true means: this node's checkbox / radio is disabled.

+

false means: this node's checkbox / radio is able.

+
+

Examples of treeNode

+

1. disable some node's checkbox / radio

+
var nodes = [
+	{ "id":1, "name":"test1", "checked":true, "chkDisabled":true},
+	{ "id":2, "name":"test2", "chkDisabled":true},
+	{ "id":3, "name":"test3"}
+]
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.click.html b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.click.html new file mode 100644 index 0000000..1f9db62 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.click.html @@ -0,0 +1,24 @@ +
+
+

StringtreeNode.click

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

Simple click event operations. As same as : (onclick ="...") the code. If the operation is more complex, please use the onClick callback.

+

Because IE is different to other browsers in operating the event of ‘onclick’ and ‘click’ coexistence, please do not use this parameter to control whether to allow the redirection operation (for example: treeNode.click = "return false;"). If there is similar requirements, please do not use the 'url' attribute to save the website address, but use the 'onClick' callback to control jumps.

+

Default: undefined

+
+
+

String Format

+
+

Standard javascript syntax, for example: alert ("test"); etc.

+
+

Examples of treeNode

+

1. When click this node, will alert msg.

+
var nodes = [
+	{ "id":1, "name":"Google CN", "url":"http://g.cn", "click":"alert('test');"},
+	......
+]
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.diy.html b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.diy.html new file mode 100644 index 0000000..68c39ba --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.diy.html @@ -0,0 +1,15 @@ +
+
+

?treeNode.* DIY *

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

Used to save other custom data of node, do not use the same attribute name with ztree used, the user can freely set.

+
+
+

Examples of treeNode

+

1. Use 'ename' attribute to save more info

+
var node = { "id":1, "name":"test1", "ename":"test eName"};
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.editNameFlag.html b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.editNameFlag.html new file mode 100644 index 0000000..f60ef2a --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.editNameFlag.html @@ -0,0 +1,19 @@ +
+
+

BooleantreeNode.editNameFlag

+

Overview[ depends on jquery.ztree.exedit js ]

+
+

+
+

Used to save the node editing name status. It is valid when [setting.edit.enable = true]

+

Do not initialize or modify it, it is an internal argument.

+

Default: false

+
+
+

Boolean Format

+
+

true means: node is being edited.

+

false means: node is not being edited.

+
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.getCheckStatus.html b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.getCheckStatus.html new file mode 100644 index 0000000..3c9a2e6 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.getCheckStatus.html @@ -0,0 +1,63 @@ +
+
+

Function()treeNode.getCheckStatus

+

Overview[ depends on jquery.ztree.excheck js ]

+
+

+
+

Get the node's half-checked status of checkbox or radio. It is valid when [setting.check.enable = true]

+

Do not initialize or modify it, it is created by the zTree.

+
+
+

Function Parameter Descriptions

+
+

ReturnJSON

+
{
+	checked: true, //As same as 'treeNode.checked'
+	half: true  //Rule the table below
+}
+ + + + + + + + + + + + + + + + + + +
setting.check.checkType = "checkbox"
treeNode.checkedtreeNode.check_Child_StatetreeNode.halfCheck half
--truetrue
 
true-1falsefalse
true0falsetrue
true1falsetrue
true2falsefalse
 
false-1falsefalse
false0falsefalse
false1falsetrue
false2falsetrue
+
+ + + + + + + + + + + + + + + + +
setting.check.checkType = "radio"
treeNode.checkedtreeNode.check_Child_StatetreeNode.halfCheck half
--truetrue
 
true-1falsefalse
true0falsefalse
true2falsetrue
 
false-1falsefalse
false0falsefalse
false2falsetrue
+
+

Examples of treeNode

+

1. Get the first root node's half-checked status

+
var treeObj = $.fn.zTree.getZTreeObj("tree");
+var halfCheck = treeObj.getNodes()[0].getCheckStatus();
+
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.getNextNode.html b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.getNextNode.html new file mode 100644 index 0000000..755aa6e --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.getNextNode.html @@ -0,0 +1,27 @@ +
+
+

Function()treeNode.getNextNode

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

Get the treeNode's next sibling node.

+

Do not initialize or modify it, it is created by the zTree.

+
+
+

Function Parameter Descriptions

+
+

ReturnJSON

+

JSON data object of the treeNode's next sibling node

+

If have not the next node, return null.

+
+

Examples of treeNode

+

1. Get the first selected node's next sibling node.

+
var treeObj = $.fn.zTree.getZTreeObj("tree");
+var sNodes = treeObj.getSelectedNodes();
+if (sNodes.length > 0) {
+	var node = sNodes[0].getNextNode();
+}
+
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.getParentNode.html b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.getParentNode.html new file mode 100644 index 0000000..16bab30 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.getParentNode.html @@ -0,0 +1,27 @@ +
+
+

Function()treeNode.getParentNode

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

Get the treeNode's parent node.

+

Do not initialize or modify it, it is created by the zTree.

+
+
+

Function Parameter Descriptions

+
+

ReturnJSON

+

JSON data object of treeNode's parent node.

+

If treeNode is root, return null.

+
+

Examples of treeNode

+

1. Get the first selected node's parent node.

+
var treeObj = $.fn.zTree.getZTreeObj("tree");
+var sNodes = treeObj.getSelectedNodes();
+if (sNodes.length > 0) {
+	var node = sNodes[0].getParentNode();
+}
+
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.getPreNode.html b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.getPreNode.html new file mode 100644 index 0000000..f6745b1 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.getPreNode.html @@ -0,0 +1,27 @@ +
+
+

Function()treeNode.getPreNode

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

Get the treeNode's previous sibling node.

+

Do not initialize or modify it, it is created by the zTree.

+
+
+

Function Parameter Descriptions

+
+

ReturnJSON

+

JSON data object of the treeNode's previous sibling node

+

If have not the previous node, return null.

+
+

Examples of treeNode

+

1. Get the first selected node's previous sibling node.

+
var treeObj = $.fn.zTree.getZTreeObj("tree");
+var sNodes = treeObj.getSelectedNodes();
+if (sNodes.length > 0) {
+	var node = sNodes[0].getPreNode();
+}
+
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.halfCheck.html b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.halfCheck.html new file mode 100644 index 0000000..8375326 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.halfCheck.html @@ -0,0 +1,29 @@ +
+
+

BooleantreeNode.halfCheck

+

Overview[ depends on jquery.ztree.excheck js ]

+
+

+
+

Force node checkBox / radio to the half-checked status. It is valid when [setting.check.enable = true & treeNode.nocheck = false]

+

1. If you force to the half-checked status, zTree will not automatically calculated the half-checked status about this node.

+

2. Until you set treeNode.halfCheck to false or null, zTree will automatically calculated the half-checked status about this node.

+

3. zTree support identification string 'true' & 'false'.

+

Defaul: false

+
+
+

Boolean Format

+
+

true means: the checkbox or radio is half-checked when zTree is initialized.

+

false means: the half-checked status will be automatically calculated

+
+

Examples of treeNode

+

1. set the half-checked status when zTree is initialized

+
var nodes = [
+{ "id":1, "name":"test1", isParent:true, checked:true, halfCheck:true },
+{ "id":2, "name":"test2", isParent:true, checked:false, halfCheck:true },
+{ "id":3, "name":"test3", isParent:true, checked:true },
+{ "id":4, "name":"test4", isParent:true, checked:false }
+]
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.icon.html b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.icon.html new file mode 100644 index 0000000..4e1c99f --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.icon.html @@ -0,0 +1,33 @@ +
+
+

StringtreeNode.icon

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

URL path of node's custom icon.

+

1. If you only set the 'icon' attribute to parent node, the parent node will only show one icon when it is expanded or collapsed.

+

2. If you need to show two icons when it is expanded or collapsed, please set the 'treeNode.iconOpen' and 'treeNode.iconClose' attribute.

+

3. If you need to use css to set the custom icon, please set the 'treeNode.iconSkin' attribute.

+

Default: undefined

+
+
+

String Format

+
+

Icon image url can be a relative path or absolute path.

+

If use a relative path, please note the relationship between icon image and the page, ensure the correct image path.

+
+

Examples of treeNode

+

1. Set the custom icon

+
var nodes = [
+	//Only show one icon when it is expanded or collapsed.
+	{ name:"Parent Node 1", icon:"/img/parent.gif"},
+
+	//Show two icons when it is expanded or collapsed.
+	{ name:"Parent Node 2", iconOpen:"/img/open.gif", iconClose:"/img/close.gif"},
+
+	//the custom icon for leaf node
+	{ name:"Leaf Node", icon:"/img/leaf.gif"}
+]
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.iconClose.html b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.iconClose.html new file mode 100644 index 0000000..2259e8f --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.iconClose.html @@ -0,0 +1,33 @@ +
+
+

StringtreeNode.iconClose

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

URL path of parent node's custom icon when it is collapsed.

+

1. Only parent node support this attribute.

+

2. This attribute must be used simultaneously with 'iconOpen' attribute.

+

3. If you need to use css to set the custom icon, please set the 'treeNode.iconSkin' attribute.

+

Default: undefined

+
+
+

String Format

+
+

Icon image url can be a relative path or absolute path.

+

If use a relative path, please note the relationship between icon image and the page, ensure the correct image path.

+
+

Examples of treeNode

+

1. Set the custom icon

+
var nodes = [
+	//Only show one icon when it is expanded or collapsed.
+	{ name:"Parent Node 1", icon:"/img/parent.gif"},
+
+	//Show two icons when it is expanded or collapsed.
+	{ name:"Parent Node 2", iconOpen:"/img/open.gif", iconClose:"/img/close.gif"},
+
+	//the custom icon for leaf node
+	{ name:"Leaf Node", icon:"/img/leaf.gif"}
+]
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.iconOpen.html b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.iconOpen.html new file mode 100644 index 0000000..3203615 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.iconOpen.html @@ -0,0 +1,33 @@ +
+
+

StringtreeNode.iconOpen

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

URL path of parent node's custom icon when it is expanded.

+

1. Only parent node support this attribute.

+

2. This attribute must be used simultaneously with 'iconClose' attribute.

+

3. If you need to use css to set the custom icon, please set the 'treeNode.iconSkin' attribute.

+

Default: undefined

+
+
+

String Format

+
+

Icon image url can be a relative path or absolute path.

+

If use a relative path, please note the relationship between icon image and the page, ensure the correct image path.

+
+

Examples of treeNode

+

1. Set the custom icon

+
var nodes = [
+	//Only show one icon when it is expanded or collapsed.
+	{ name:"Parent Node 1", icon:"/img/parent.gif"},
+
+	//Show two icons when it is expanded or collapsed.
+	{ name:"Parent Node 2", iconOpen:"/img/open.gif", iconClose:"/img/close.gif"},
+
+	//the custom icon for leaf node
+	{ name:"Leaf Node", icon:"/img/leaf.gif"}
+]
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.iconSkin.html b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.iconSkin.html new file mode 100644 index 0000000..fca7fbf --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.iconSkin.html @@ -0,0 +1,43 @@ +
+
+

StringtreeNode.iconSkin

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

The className of node's custom icon.

+

1. You need to modify the css, add the definition of className.

+

2. The css is simple, convenient, and support the parent node to switch icons when it is expanded or collapsed.

+

3. Recommend the use of CSS Sprites, can reduce repeating load the image, to avoid image flicker.

+

4. The 'iconSkin' support IE6 in zTree v3.x.

+

5. If you need to use image's URL to set the custom icon, please set the 'treeNode.icon' or 'treeNode.iconOpen' or 'treeNode.iconClose' attribute.

+

Default: undefined

+
+
+

String Format

+
+

The string about custom icon's className.

+
+

Examples of css & treeNode

+

1. Set the custom icon

+
css example:
+.ztree li span.button.diy01_ico_open, .ztree li span.button.diy01_ico_close{...}
+
+.ztree li span.button.diy02_ico_open{...}
+.ztree li span.button.diy02_ico_close{...}
+
+.ztree li span.button.diy03_ico_docu{...}
+
+node's data example:
+var nodes = [
+	//Only show one icon when it is expanded or collapsed.
+	{ name:"Parent Node 1", iconSkin:"diy01"},
+
+	//Show two icons when it is expanded or collapsed.
+	{ name:"Parent Node 2", iconSkin:"diy02"},
+
+	//the custom icon for leaf node
+	{ name:"Leaf Node", iconSkin:"diy03"}
+]
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.isAjaxing.html b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.isAjaxing.html new file mode 100644 index 0000000..ddadf41 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.isAjaxing.html @@ -0,0 +1,26 @@ +
+
+

BooleantreeNode.isAjaxing

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

Judge whether the node's child nodes being loaded asynchronously.

+

Do not initialize or modify it, it is created by the zTree.

+
+
+

Boolean Format

+
+

true means: the node's child nodes is being loaded asynchronously

+

false means: the node's child nodes is not being loaded asynchronously

+
+

Examples of treeNode

+

1. Judge whether the first selected node's child nodes being loaded asynchronously

+
var treeObj = $.fn.zTree.getZTreeObj("tree");
+var sNodes = treeObj.getSelectedNodes();
+if (sNodes.length > 0) {
+	var isAjaxing = sNodes[0].isAjaxing;
+}
+
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.isFirstNode.html b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.isFirstNode.html new file mode 100644 index 0000000..a8ee61c --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.isFirstNode.html @@ -0,0 +1,28 @@ +
+
+

BooleantreeNode.isFirstNode

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

Judge whether the node is the sibling nodes's first node.

+

If you use the 'exhide' pack, so this attribute will only support the node which be shown.

+

Do not initialize or modify it, it is created by the zTree.

+
+
+

Boolean Format

+
+

true means: the node is first node.

+

false means: the node is not first node.

+

If the node has been hidden, isFirstNode = false

+
+

Examples of treeNode

+

1. Judge whether the first selected node is the sibling nodes's first node.

+
var treeObj = $.fn.zTree.getZTreeObj("tree");
+var sNodes = treeObj.getSelectedNodes();
+if (sNodes.length > 0) {
+	var isFirstNode = sNodes[0].isFirstNode;
+}
+
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.isHidden.html b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.isHidden.html new file mode 100644 index 0000000..3a07b94 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.isHidden.html @@ -0,0 +1,28 @@ +
+
+

BooleantreeNode.isHidden

+

Overview[ depends on jquery.ztree.exhide js ]

+
+

+
+

Judge whether the node has been hidden.

+

1. When initialize zTree, the nodes which be set 'isHidden = true' will be hidden.

+

+

2. Please don't change this attribute of the nodes which have been created. If you want to hide or show nodes, please use 'hideNode() / hideNodes() / showNode() / showNodes()' methods.

+
+
+

Boolean Format

+
+

true means: this node is hidden.

+

false means: this node is shown.

+
+

Examples of treeNode

+

1. Judge whether the first root node has been hidden.

+
var treeObj = $.fn.zTree.getZTreeObj("tree");
+var sNodes = treeObj.getNodes();
+if (sNodes.length > 0) {
+	var isHidden = sNodes[0].isHidden;
+}
+
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.isHover.html b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.isHover.html new file mode 100644 index 0000000..e18ed0c --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.isHover.html @@ -0,0 +1,19 @@ +
+
+

BooleantreeNode.isHover

+

Overview[ depends on jquery.ztree.exedit js ]

+
+

+
+

Used to record the hover status of node's DOM. For 'setting.view.addHoverDom / removeHoverDom'.

+

Do not initialize or modify it, it is an internal argument.

+

Default: false

+
+
+

Boolean Format

+
+

true means: the node's DOM is in hover.

+

false means: the node's DOM is not in hover.

+
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.isLastNode.html b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.isLastNode.html new file mode 100644 index 0000000..cd2ca26 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.isLastNode.html @@ -0,0 +1,28 @@ +
+
+

BooleantreeNode.isLastNode

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

Judge whether the node is the sibling nodes's last node.

+

If you use the 'exhide' pack, so this attribute will only support the node which be shown.

+

Do not initialize or modify it, it is created by the zTree.

+
+
+

Boolean Format

+
+

true means: the node is last node.

+

false means: the node is not last node.

+

If the node has been hidden, isLastNode = false

+
+

Examples of treeNode

+

1. Judge whether the first selected node is the sibling nodes's last node.

+
var treeObj = $.fn.zTree.getZTreeObj("tree");
+var sNodes = treeObj.getSelectedNodes();
+if (sNodes.length > 0) {
+	var isLastNode = sNodes[0].isLastNode;
+}
+
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.isParent.html b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.isParent.html new file mode 100644 index 0000000..dad4b81 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.isParent.html @@ -0,0 +1,28 @@ +
+
+

BooleantreeNode.isParent

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

Judge whether the node is the parent node.

+

1. When zTree initialize the node data, the node which has children is set to true, otherwise false.

+

2. When zTree initialize the node data, if set treeNode.isParent to true, the node will be set to be parent node.

+

3. In order to solve the problem of someone make json data, supporting "false", "true" format of the data string.

+
+
+

Boolean Format

+
+

true means: the node is parent node.

+

false means: the node is not parent node.

+
+

Examples of treeNode

+

1. Judge whether the first selected node is the parent node.

+
var treeObj = $.fn.zTree.getZTreeObj("tree");
+var sNodes = treeObj.getSelectedNodes();
+if (sNodes.length > 0) {
+	var isParent = sNodes[0].isParent;
+}
+
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.level.html b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.level.html new file mode 100644 index 0000000..d151162 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.level.html @@ -0,0 +1,25 @@ +
+
+

NumbertreeNode.level

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

The level of node

+

Do not initialize or modify it, it is created by the zTree.

+
+
+

Number Format

+
+

The root node's level = 0, and next level = 1, ...

+
+

Examples of treeNode

+

1. Get the first selected node's level

+
var treeObj = $.fn.zTree.getZTreeObj("tree");
+var sNodes = treeObj.getSelectedNodes();
+if (sNodes.length > 0) {
+	var level = sNodes[0].level;
+}
+
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.name.html b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.name.html new file mode 100644 index 0000000..fa508cc --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.name.html @@ -0,0 +1,25 @@ +
+
+

StringtreeNode.name

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

The node's name

+

1. If you want to change 'name' attribute, please modify the 'setting.data.key.name' attribute.

+

Default: undenfined

+
+
+

String Format

+
+

String object. The HTML special characters are escaped

+
+

Examples of treeNode

+

1. Set node's name to 'test1', 'test2', 'test3'

+
var nodes = [
+	{ "id":1, "name":"test1"},
+	{ "id":2, "name":"test2"},
+	{ "id":3, "name":"test3"}
+]
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.nocheck.html b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.nocheck.html new file mode 100644 index 0000000..6c4880c --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.nocheck.html @@ -0,0 +1,26 @@ +
+
+

BooleantreeNode.nocheck

+

Overview[ depends on jquery.ztree.excheck js ]

+
+

+
+

1. Set node to hide the checkbox or radio. It is valid when [setting.check.enable = true]

+

2. zTree support identification string 'true' & 'false'.

+

Default: false

+
+
+

Boolean Format

+
+

true means: the node hide the checkbox or radio, and don't affect the checked association, and don't affect its parent node's half-checked status.

+

false means: the node show the checkbox or radio.

+
+

Examples of treeNode

+

1. Hide some node's checkbox / radio

+
var nodes = [
+	{ "id":1, "name":"test1", "nocheck":true},
+	{ "id":2, "name":"test2"},
+	{ "id":3, "name":"test3"}
+]
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.open.html b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.open.html new file mode 100644 index 0000000..bc910de --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.open.html @@ -0,0 +1,30 @@ +
+
+

BooleantreeNode.open

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

Used to record the parent node's expand status.

+

1. When zTree initialize the node data, if you set treeNode.open = true, zTree will default expand this parent node.

+

2. Leaf node's 'open' attribute is false.

+

3. In order to solve the problem of someone make json data, supporting "false", "true" format of the data string.

+

4. When setting.async.enable = false, the parent node will be expanded which have no child nodes and its attribute 'open' is true. (v3.5.15+)

+

Default: false

+
+
+

Boolean Format

+
+

true means: the parent node is expanded.

+

false means: the parent node is collapsed.

+
+

Examples of treeNode

+

1. Get the first selected node's expand status.

+
var treeObj = $.fn.zTree.getZTreeObj("tree");
+var sNodes = treeObj.getSelectedNodes();
+if (sNodes.length > 0) {
+	var isOpen = sNodes[0].open;
+}
+
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.parentTId.html b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.parentTId.html new file mode 100644 index 0000000..0bc2a6d --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.parentTId.html @@ -0,0 +1,27 @@ +
+
+

StringtreeNode.parentTId

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

The unique identifier of node's parent node.

+

1. zTree v3.x using 'parentTId' replaced the original 'parentNode' attribute, and increased getParentNode () method, in order to avoid the original 'parentNode' cause the clone () method infinite loop.

+

2. Do not initialize or modify it, it is created by the zTree.

+
+
+

String Format

+
+

String object of node's parent node's tId. please see API about 'treeNode.tId'

+

If treeNode is root node, parentTId is null.

+
+

Examples of treeNode

+

1. Get the first selected node's parent node's tId

+
var treeObj = $.fn.zTree.getZTreeObj("tree");
+var sNodes = treeObj.getSelectedNodes();
+if (sNodes.length > 0) {
+	var parentTId = sNodes[0].parentTId;
+}
+
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.tId.html b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.tId.html new file mode 100644 index 0000000..18c2855 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.tId.html @@ -0,0 +1,25 @@ +
+
+

StringtreeNode.tId

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

The unique identifier of node.

+

Do not initialize or modify it, it is created by the zTree.

+
+
+

String Format

+
+

tId rules: setting.treeId + "_" + zTree counter

+
+

Examples of treeNode

+

1. Get the first selected node's tId

+
var treeObj = $.fn.zTree.getZTreeObj("tree");
+var sNodes = treeObj.getSelectedNodes();
+if (sNodes.length > 0) {
+	var tId = sNodes[0].tId;
+}
+
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.target.html b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.target.html new file mode 100644 index 0000000..176a7a3 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.target.html @@ -0,0 +1,24 @@ +
+
+

StringtreeNode.target

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

Used to set the target where the node is clicked to open url. It is valid when [treeNode.url exists]

+

Default: undefined

+
+
+

String Format

+
+

As same as <a> tag's 'target' attribute. e.g. '_blank', '_self' or other window name.

+

if this attribute is omitted, zTree default set it to '_blank'

+
+

Exmaples of treeNode

+

1. Set target is '_blank'

+
var nodes = [
+	{ "id":1, "name":"test1", "url":"http://myTest.com", "target":"_blank"},
+	......
+]
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.url.html b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.url.html new file mode 100644 index 0000000..5552445 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.url.html @@ -0,0 +1,25 @@ +
+
+

StringtreeNode.url

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

The URL of node link

+

1. In edit mode (setting.edit.enable = true) , this feature fails. If you must use a similar feature, please use the 'onClick' callback for their own control.

+

2. If you use the 'onClick' callback function to control opening URL , then set the URL in the other custom attribute, do not use the 'url' attribute.

+

Default: undefined

+
+
+

String Format

+
+

As same as <a> tag's 'href' attribute.

+
+

Examples of treeNode

+

1. Set the URL is 'g.cn'

+
var nodes = [
+	{ "id":1, "name":"Google CN", "url":"http://g.cn"},
+	......
+]
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.zAsync.html b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.zAsync.html new file mode 100644 index 0000000..b3ff414 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.zAsync.html @@ -0,0 +1,28 @@ +
+
+

BooleantreeNode.zAsync

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

Judge whether the parent node's child nodes will be loaded asynchronously when the parent node is expanded.

+

Do not initialize or modify it, it is created by the zTree.

+

Default:false (the parent node which have no child nodes); true (the parent node which have child nodes or the leaf node)

+
+
+

Boolean Format

+
+

true means: the node's child nodes will not be loaded asynchronously when the parent node is expanded.

+

false means: the node's child nodes will be loaded asynchronously when the parent node is expanded.

+

This attribute will not effect to 'reAsyncChildNodes()' method

+
+

Examples of treeNode

+

1. Judge whether the first selected node's child nodes has been loaded asynchronously

+
var treeObj = $.fn.zTree.getZTreeObj("tree");
+var sNodes = treeObj.getSelectedNodes();
+if (sNodes.length > 0) {
+	var zAsync = sNodes[0].zAsync;
+}
+
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.addNodes.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.addNodes.html new file mode 100644 index 0000000..680ccc4 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.addNodes.html @@ -0,0 +1,42 @@ +
+
+

Function(parentNode, newNodes, isSilent)zTreeObj.addNodes

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

Add nodes

+

In order to avoid duplication data resulting from repeated initialization, zTree v3.x will automatically clone node data when zTree initialized or add nodes. If you need to get the data objects within the zTree, please get the return value of this method.

+

Please use zTree object to executing the method.

+
+
+

Function Parameter Descriptions

+
+

parentNodeJSON

+

The additional node's parent node. If additional node is root node, please the parentNode is null.

+

Please ensure this node data object is a data object within zTree.

+

newNodesJSON / Array(JSON)

+

The node data's JSON object collection which need to increase, refer to 'treeNode treeNode data details'

+

1. zTree v3.x support to add single node, that is, if you only add a node, you can don't use the array.

+

2. If you use simple data model, please refer to the attributes within the 'setting.data.simpleData'.

+

isSilentBoolean

+

Set whether to automatically expand the parent node, after add nodes.

+

isSilent = true means: don't auto expand the parent node. Otherwise auto expand.

+

Return Array(JSON)

+

return the new nodes in zTree

+

If the newNodes is single data object, the return value is a array with length is 1.

+

Note: the node data JSON object in the return value is not equal to the JSON object in the 'newNodes'.

+
+

Examples of function

+

1. Add one root node to zTree which id is 'tree'

+
var treeObj = $.fn.zTree.getZTreeObj("tree");
+var newNode = {name:"newNode1"};
+newNode = treeObj.addNodes(null, newNode);
+
+

2. Add three root nodes to zTree which id is 'tree'

+
var treeObj = $.fn.zTree.getZTreeObj("tree");
+var newNodes = [{name:"newNode1"}, {name:"newNode2"}, {name:"newNode3"}];
+newNodes = treeObj.addNodes(null, newNodes);
+
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.cancelEditName.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.cancelEditName.html new file mode 100644 index 0000000..8afdae0 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.cancelEditName.html @@ -0,0 +1,30 @@ +
+
+

Function(newName)zTreeObj.cancelEditName

+

Overview[ depends on jquery.ztree.exedit js ]

+
+

+
+

Cancel the edit name status. Can restore the original name, and can also force assigned to a new name.

+

Please use zTree object to executing the method.

+
+
+

Function Parameter Descriptions

+
+

newNameString

+

Re given a new name

+

If this parameter is omitted, then restore the original name.

+

Return none

+

no return value

+
+

Examples of function

+

1. Cancel edit name, and restore the original name.

+
var treeObj = $.fn.zTree.getZTreeObj("tree");
+treeObj.cancelEditName();
+
+

2. Cancel edit name , and set the new name.

+
var treeObj = $.fn.zTree.getZTreeObj("tree");
+treeObj.cancelEditName("test_new_name");
+
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.cancelSelectedNode.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.cancelSelectedNode.html new file mode 100644 index 0000000..581c2d2 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.cancelSelectedNode.html @@ -0,0 +1,35 @@ +
+
+

Function(treeNode)zTreeObj.cancelSelectedNode

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

To cancel the selected node.

+

zTree v3.x support to select multiple nodes, so you can cancel a single selected node, and you can cancel all of the selected nodes too.

+

Please use zTree object to executing the method.

+
+
+

Function Parameter Descriptions

+
+

treeNodeJSON

+

JSON data object of the node which need to cancel selected.

+

Please ensure that this data object is an internal node data object in zTree.

+

If you omit this parameter, zTree will cancel all of the selected nodes.

+

Return none

+

no return value

+
+

Examples of function

+

1. Cancel all of the selected nodes

+
var treeObj = $.fn.zTree.getZTreeObj("tree");
+treeObj.cancelSelectedNode();
+
+

2. Cancel the first node of the selected nodes

+
var treeObj = $.fn.zTree.getZTreeObj("tree");
+var nodes = treeObj.getSelectedNode();
+if (nodes.length>0) { 
+	treeObj.cancelSelectedNode(nodes[0]);
+}
+
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.checkAllNodes.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.checkAllNodes.html new file mode 100644 index 0000000..276b629 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.checkAllNodes.html @@ -0,0 +1,29 @@ +
+
+

Function(checked)zTreeObj.checkAllNodes

+

Overview[ depends on jquery.ztree.excheck js ]

+
+

+
+

Check or unCheck all nodes which have been initialized. It is valid when [setting.check.enable = true & setting.check.chkStyle = "checkbox"]

+

This method does not trigger 'beforeCheck' or 'onCheck' callback function.

+

Please use zTree object to executing the method.

+
+
+

Function Parameter Descriptions

+
+

checkedBoolean

+

checked = true means: check all nodes.

+

checked = false means: uncheck all nodes.

+

Don't affect the node which 'nochecked' attribute is true.

+

Don't affect the node is not loaded.

+

Return none

+

no return value

+
+

Examples of function

+

1. check all nodes

+
var treeObj = $.fn.zTree.getZTreeObj("tree");
+treeObj.checkAllNodes(true);
+
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.checkNode.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.checkNode.html new file mode 100644 index 0000000..7411ef8 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.checkNode.html @@ -0,0 +1,44 @@ +
+
+

Function(treeNode, checked, checkTypeFlag, callbackFlag)zTreeObj.checkNode

+

Overview[ depends on jquery.ztree.excheck js ]

+
+

+
+

Check or unCheck a single node. It is valid when [setting.check.enable = true]

+

Use checkNode() method of zTree v3.x can trigger 'beforeCheck' or 'onCheck' callback function. for reduce redundant code.

+

Please use zTree object to executing the method.

+
+
+

Function Parameter Descriptions

+
+

treeNodeJSON

+

JSON data object of the node which need to be checked or unchecked.

+

Please ensure that this data object is an internal node data object in zTree.

+

checkedBoolean

+

checked = true means: check node.

+

checked = false means: uncheck node.

+

If this parameter is omitted, then toggle check or uncheck depend this node's expanded state.

+

Don't affect the node which 'nochecked' attribute is true.

+

checkTypeFlagBoolean

+

checkTypeFlag = true means: According to 'setting.check.chkboxType' attribute automatically check or uncheck the parent and child nodes.

+

checkTypeFlag = false means: only check or uncheck this node, don't affect its parent and child nodes.

+

When checkTypeFlag = false and treeNode.checked = checked, will not trigger callback function.

+

Don't affect the parent and child nodes which 'nochecked' attribute is true.

+

callbackFlagBoolean

+

callbackFlag = true means: call this method, will trigger 'beforeCheck' & 'onCheck' callback.

+

callbackFlag = false means: call this method, will not trigger callback.

+

If this parameter is omitted, it is same as 'callbackFlag = false'

+

Return none

+

no return value

+
+

Examples of function

+

1. check the selected nodes

+
var treeObj = $.fn.zTree.getZTreeObj("tree");
+var nodes = treeObj.getSelectedNodes();
+for (var i=0, l=nodes.length; i < l; i++) {
+	treeObj.checkNode(nodes[i], true, true);
+}
+
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.copyNode.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.copyNode.html new file mode 100644 index 0000000..a98e84d --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.copyNode.html @@ -0,0 +1,47 @@ +
+
+

Function(targetNode, treeNode, moveType, isSilent)zTreeObj.copyNode

+

Overview[ depends on jquery.ztree.exedit js ]

+
+

+
+

Copy the node

+

When copy nodes, zTree v3.x will clone nodes. If you need to get the data object in zTree, please get the return value of this method.

+

Please use zTree object to executing the method.

+
+
+

Function Parameter Descriptions

+
+

targetNodeJSON

+

JSON data object of the node which will be target.

+

If copy the node to root node, please set the 'targetNode' to null.

+

Please ensure that this data object is an internal node data object in zTree.

+

treeNodeJSON

+

JSON data object of the node which will be copied.

+

Please ensure that this data object is an internal node data object in zTree.

+

moveTypeString

+

Copied to the target node's relative position.

+

"inner" means: to be taregetNode's child node.

+

"prev" means: to be taregetNode's previous sibling node.

+

"next" means: to be taregetNode's next sibling node.

+

isSilentBoolean

+

After copy the node, whether to automatically expand its parent node.

+

isSilent = true means: don't expand its parent node.

+

isSilent = false or omit this parameter means: expand its parent node.

+

Return JSON

+

return the new node in zTree

+

Note: the node data JSON object in the return value is not equal to the treeNode.

+
+

Examples of function

+

1. Copy the second root node to the first root node's child node.

+
var treeObj = $.fn.zTree.getZTreeObj("tree");
+var nodes = treeObj.getNodes();
+treeObj.copyNode(nodes[0], nodes[1], "inner");
+
+

2. Copy the second root node to the first root node's previous sibling node.

+
var treeObj = $.fn.zTree.getZTreeObj("tree");
+var nodes = treeObj.getNodes();
+treeObj.copyNode(nodes[0], nodes[1], "before");
+
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.destroy.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.destroy.html new file mode 100644 index 0000000..80c5281 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.destroy.html @@ -0,0 +1,25 @@ +
+
+

Function(treeId)zTreeObj.destroy

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

From zTree v3.4, zTree support the method for destruction.

+

1. This method can destroy the zTreeObj's zTree.

+

2. If you want to destory all of the zTrees, you can use the '$.fn.zTree.destroy()' method.

+

3. If you want to use the tree which has been destroyed, you must use the 'init()' method at first.

+
+
+

Function Parameter Descriptions

+
+

Return none

+

no return value

+
+

Examples of function

+

1. destroy the zTree which its id is 'treeDemo'

+
var zTreeObj = $.fn.zTree.getZTreeObj("treeDemo");
+zTreeObj.destroy();
+
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.editName.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.editName.html new file mode 100644 index 0000000..92ac5c1 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.editName.html @@ -0,0 +1,29 @@ +
+
+

Function(treeNode)zTreeObj.editName

+

Overview[ depends on jquery.ztree.exedit js ]

+
+

+
+

Start editing the node's name.

+

1. If need to cancel editing the node's name, please use cancelEditName(newName) method.

+

2. This method can be used to set the editing node‘s input box to get focus.

+

3. Please use zTree object to executing the method.

+
+
+

Function Parameter Descriptions

+
+

treeNodeJSON

+

JSON data object of the node which will be editing name

+

Please ensure that this data object is an internal node data object in zTree.

+

Retrun none

+

no return value

+
+

Examples of function

+

1. Start editing the first selected node's name.

+
var treeObj = $.fn.zTree.getZTreeObj("tree");
+var nodes = treeObj.getNodes();
+treeObj.editName(nodes[0]);
+
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.expandAll.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.expandAll.html new file mode 100644 index 0000000..ef28a31 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.expandAll.html @@ -0,0 +1,30 @@ +
+
+

Function(expandFlag)zTreeObj.expandAll

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

Expand or collapse all nodes.

+

This method does not trigger 'beforeExpand / onExpand' or 'beforeCollapse / onCollapse' callback function.

+

Please use zTree object to executing the method.

+
+
+

Function Parameter Descriptions

+
+

expandFlagBoolean

+

expandFlag = true means: expand all nodes.

+

expandFlag = false means: collapse all nodes.

+

Return Boolean

+

return the result of expand or collapse.

+

true means: expand all nodes

+

false means: collapse all nodes

+

null means: have no parent node to expand or collapse.

+
+

Examples of function

+

1. Expand all nodes

+
var treeObj = $.fn.zTree.getZTreeObj("tree");
+treeObj.expandAll(true);
+
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.expandNode.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.expandNode.html new file mode 100644 index 0000000..f99ff77 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.expandNode.html @@ -0,0 +1,50 @@ +
+
+

Function(treeNode, expandFlag, sonSign, focus, callbackFlag)zTreeObj.expandNode

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

Expand or collapse single node.

+

Use expandNode() method of zTree v3.x can trigger 'beforeExpand / onExpand' or 'beforeCollapse / onCollapse' callback function. for reduce redundant code.

+

Please use zTree object to executing the method.

+
+
+

Function Parameter Descriptions

+
+

treeNodeJSON

+

JSON data object of the node which will be expanded or collapsed

+

Please ensure that this data object is an internal node data object in zTree.

+

expandFlagBoolean

+

expandFlag = true means: expand the node.

+

expandFlag = false means: collapse the node.

+

If this parameter is omitted, then toggle expand or collapse depend this node's expanded state.

+

sonSignBoolean

+

sonSign = true means: expand or collapse all of the child nodes depend the 'expandFlag' parameter.

+

sonSign = false means: only expand or collapse this node.

+

When sonSign = false and treeNode.open = expandFlag, will not trigger the callback.

+

If this parameter is omitted, it is same as 'sonSign = false'.

+

focusBoolean

+

focus = true means: after expand or collapse, set the focus of this node for view.

+

focus = false means: after expand or coolapse, don't set the focus of this node.

+

If this parameter is omitted, it is same as 'focus = true'.

+

callbackFlagBoolean

+

callbackFlag = true means: call this method, will trigger 'beforeExpand / onExpand' or 'beforeCollapse / onCollapse' callback.

+

callbackFlag = false means: call this method, will not trigger callback.

+

If this parameter is omitted, it is same as 'callbackFlag = false'

+

Return Boolean

+

return the result of expand or collapse.

+

true means: expand node

+

false means: collapse node

+

null means: the node is not parent node.

+
+

Examples of function

+

1. Expand the first selected node. (and expand this node's child nodes)

+
var treeObj = $.fn.zTree.getZTreeObj("tree");
+var nodes = treeObj.getSelectedNodes();
+if (nodes.length>0) {
+	treeObj.expandNode(nodes[0], true, true, true);
+}
+
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getChangeCheckedNodes.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getChangeCheckedNodes.html new file mode 100644 index 0000000..d0f9cf3 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getChangeCheckedNodes.html @@ -0,0 +1,24 @@ +
+
+

Function()zTreeObj.getChangeCheckedNodes

+

Overview[ depends on jquery.ztree.excheck js ]

+
+

+
+

Get the collection of nodes which be changed checked status. (Compared with the original data checkedOld) It is valid when [setting.check.enable = true]

+

Please use zTree object to executing the method.

+
+
+

Function Parameter Descriptions

+
+

Return Array(JSON)

+

return the collection of nodes which be changed checked status (Array)

+

If you need to get the collection of nodes which changed the checked status, when nodes be checked or unchecked, so please set treeNode.checkedOld = treeNode.checked ( for all of the be changed checked status nodes ).

+
+

Examples of function

+

1. Get the collection of nodes which be changed checked status

+
var treeObj = $.fn.zTree.getZTreeObj("tree");
+var nodes = treeObj.getChangeCheckedNodes();
+
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getCheckedNodes.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getCheckedNodes.html new file mode 100644 index 0000000..7a7c3b9 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getCheckedNodes.html @@ -0,0 +1,28 @@ +
+
+

Function(checked)zTreeObj.getCheckedNodes

+

Overview[ depends on jquery.ztree.excheck js ]

+
+

+
+

Get the collection of nodes which be checked or unchecked. It is valid when [setting.check.enable = true]

+

Please use zTree object to executing the method.

+
+
+

Function Parameter Descriptions

+
+

checkedBoolean

+

checked = true means: get the collection of nodes which be checked

+

checked = false means: get the collection of nodes which be unchecked

+

If this parameter is omitted, it is same as 'checked = true'

+

Don't get the nodes which 'nochecked' attribute is true.

+

Return Array(JSON)

+

return the collection of nodes which be checked or unchecked. (Array)

+
+

Examples of function

+

1. Get the collection of nodes which be checked.

+
var treeObj = $.fn.zTree.getZTreeObj("tree");
+var nodes = treeObj.getCheckedNodes(true);
+
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getNodeByParam.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getNodeByParam.html new file mode 100644 index 0000000..05572e7 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getNodeByParam.html @@ -0,0 +1,32 @@ +
+
+

Function(key, value, parentNode)zTreeObj.getNodeByParam

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

According to the node data attribute, search the node which exactly matches, and get the JSON object of node.

+

Please use zTree object to executing the method.

+
+
+

Function Parameter Descriptions

+
+

keyString

+

The name of attribute which need to exactly match

+

value?

+

The value which need to exactly match, can be any type, please ensure its type consistent with the attribute values.

+

parentNodeJSON

+

The search range, you can search node from a parent node's child nodes.

+

If this parameter is omitted, zTree will search node from all nodes.

+

Return JSON

+

JSON data object of the node which be searched.

+

1. If search none node, return null.

+

2. If there are many nodes can be searched, return the first node.

+
+

Examples of function

+

1. Search the node which its 'id' attribute is 1.

+
var treeObj = $.fn.zTree.getZTreeObj("tree");
+var node = treeObj.getNodeByParam("id", 1, null);
+
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getNodeByTId.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getNodeByTId.html new file mode 100644 index 0000000..8fd26ea --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getNodeByTId.html @@ -0,0 +1,27 @@ +
+
+

Function(tId)zTreeObj.getNodeByTId

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

According the unique identifier tId of zTree, quick get the node's JSON data object.

+

Get the node from the cache, don't need to search from all nodes.

+

Please use zTree object to executing the method.

+
+
+

Function Parameter Descriptions

+
+

tIdString

+

The unique identifier of node.

+

Return JSON

+

JSON data object of the node which be searched.

+

If no result, return null.

+
+

Examples of function

+

1. 1. Search the node which its 'tId' attribute is 'tree_10'

+
var treeObj = $.fn.zTree.getZTreeObj("tree");
+var node = treeObj.getNodeByTId("tree_10");
+
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getNodeIndex.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getNodeIndex.html new file mode 100644 index 0000000..ad828e7 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getNodeIndex.html @@ -0,0 +1,30 @@ +
+
+

Function(treeNode)zTreeObj.getNodeIndex

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

Get the node's index in the same level nodes. (start from 0)

+

Please use zTree object to executing the method.

+
+
+

Function Parameter Descriptions

+
+

treeNodeJSON

+

JSON data object of the node which need to get index.

+

Please ensure that this data object is an internal node data object in zTree.

+

Return Number

+

return the index. (start from 0)

+

If there is no this node, return -1.

+
+

Examples of function

+

1. Get the first selected node's index in the same level nodes.

+
var treeObj = $.fn.zTree.getZTreeObj("tree");
+var nodes = treeObj.getSelectedNodes();
+if (nodes.length>0) {
+	var index = treeObj.getNodeIndex(nodes[0]);
+}
+
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getNodes.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getNodes.html new file mode 100644 index 0000000..5906a43 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getNodes.html @@ -0,0 +1,26 @@ +
+
+

Function()zTreeObj.getNodes

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

Get all of the nodes in zTree

+

Please use zTree object to executing the method.

+
+
+

Function Parameter Descriptions

+
+

Return Array(JSON)

+

return all of the nodes

+

1. This array is a collection of the root nodes (the default child nodes are in the 'children' attributes);

+

2. Traverse all the nodes need to use recursion, or the use of transformToArray() method make the nodes to be a simple array.

+

3. For the asynchronous loading mode, can't get the nodes which are yet loaded.

+
+

Examples of function

+

1. Get all of the nodes

+
var treeObj = $.fn.zTree.getZTreeObj("tree");
+var nodes = treeObj.getNodes();
+
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getNodesByFilter.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getNodesByFilter.html new file mode 100644 index 0000000..2cd6baa --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getNodesByFilter.html @@ -0,0 +1,43 @@ +
+
+

Function(filter, isSingle, parentNode, invokeParam)zTreeObj.getNodesByFilter

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

Search the single node's data or collection of nodes's data by custom rules.

+

Can be customized complex search rules.

+

Please use zTree object to executing the method.

+
+
+

Function Parameter Descriptions

+
+

filterFunction

+

Custom search function. e.g. function filter(node) {...}

+

filter's parameter: node (node's data -- JSON)

+

filter's return: boolean (true means: match the rules; false means: don't match the rules)

+

isSingleBoolean

+

isSingle = true means: search only one node

+

isSingle = false means: search the array of the nodes

+

If this parameter is omitted, as same as false

+

parentNodeJSON

+

The search range, you can search node from a parent node's child nodes.

+

If this parameter is omitted, zTree will search node from all nodes.

+

invokeParamanything

+

Custom data object by user, used to calculate in the filter function.

+

Return Array(JSON) / JSON

+

If isSingle = true, will return the first node's data (JSON) what be matched. If no match, return null.

+

If isSingle = false, will return the array of all nodes's data what be matched. if no match, return [ ].

+
+

Examples of function

+

1. Search the nodes which their 'name' contains 'test' and 'level' is 2.

+
function filter(node) {
+    return (node.level == 2 && node.name.indexOf("test")>-1);
+}
+......
+var treeObj = $.fn.zTree.getZTreeObj("tree");
+var node = treeObj.getNodesByFilter(filter, true); // search only one node
+var nodes = treeObj.getNodesByFilter(filter); // search the array of the nodes
+
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getNodesByParam.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getNodesByParam.html new file mode 100644 index 0000000..3173af4 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getNodesByParam.html @@ -0,0 +1,31 @@ +
+
+

Function(key, value, parentNode)zTreeObj.getNodesByParam

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

According to the node data attribute, search the nodes which exactly matches, and get the JSON objects collection of nodes.

+

Please use zTree object to executing the method.

+
+
+

Function Parameter Descriptions

+
+

keyString

+

The name of attribute which need to exactly match

+

value?

+

The value which need to exactly match, can be any type, please ensure its type consistent with the attribute values.

+

parentNodeJSON

+

The search range, you can search node from a parent node's child nodes.

+

If this parameter is omitted, zTree will search node from all nodes.

+

Return Array(JSON)

+

The JSON data objects collection of the nodes which be searched.

+

If search none node, return [ ].

+
+

Examples of function

+

1. Search the nodes which their 'name' attribute is 'test'.

+
var treeObj = $.fn.zTree.getZTreeObj("tree");
+var nodes = treeObj.getNodesByParam("name", "test", null);
+
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getNodesByParamFuzzy.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getNodesByParamFuzzy.html new file mode 100644 index 0000000..14b6c29 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getNodesByParamFuzzy.html @@ -0,0 +1,32 @@ +
+
+

Function(key, value, parentNode)zTreeObj.getNodesByParamFuzzy

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

According to the node data attribute, search the nodes which fuzzy matches, and get the JSON objects collection of nodes.

+

Please use zTree object to executing the method.

+
+
+

Function Parameter Descriptions

+
+

keyString

+

The name of attribute which need to fuzzy match

+

valueString

+

The value which need to fuzzy match.

+

The type of value can only be String

+

parentNodeJSON

+

The search range, you can search node from a parent node's child nodes.

+

If this parameter is omitted, zTree will search node from all nodes.

+

Return Array(JSON)

+

The JSON data objects collection of the nodes which be searched.

+

If search none node, return [ ].

+
+

Examples of function

+

1. Search the nodes which their 'name' attribute contains the string 'test'.

+
var treeObj = $.fn.zTree.getZTreeObj("tree");
+var nodes = treeObj.getNodesByParamFuzzy("name", "test", null);
+
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getSelectedNodes.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getSelectedNodes.html new file mode 100644 index 0000000..4a0f060 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getSelectedNodes.html @@ -0,0 +1,23 @@ +
+
+

Function()zTreeObj.getSelectedNodes

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

Get the JSON data objects collection of the selected nodes in zTree.

+

Please use zTree object to executing the method.

+
+
+

Function Parameter Descriptions

+
+

Return Array(JSON)

+

The JSON data objects collection of the selected nodes.

+
+

Examples of function

+

1. get the selected nodes

+
var treeObj = $.fn.zTree.getZTreeObj("tree");
+var nodes = treeObj.getSelectedNodes();
+
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.hideNode.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.hideNode.html new file mode 100644 index 0000000..f02f523 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.hideNode.html @@ -0,0 +1,29 @@ +
+
+

Function(treeNode)zTreeObj.hideNode

+

Overview[ depends on jquery.ztree.exhide js ]

+
+

+
+

To hide any node.

+

1. This feature can't support the 'exedit' feature, so please don't use this feature in edit mode.

+

2. If you hide or show the nodes, it will effect the 'isFirstNode' and 'isLastNode' attribute.

+

3. Please use zTree object to executing the method.

+
+
+

Function Parameter Descriptions

+
+

treeNodeJSON

+

JSON data object of the node which will be hidden

+

Please ensure that this data object is an internal node data object in zTree.

+

Retrun none

+

no return value

+
+

Examples of function

+

1. hide the first root node.

+
var treeObj = $.fn.zTree.getZTreeObj("tree");
+var nodes = treeObj.getNodes();
+treeObj.hideNode(nodes[0]);
+
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.hideNodes.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.hideNodes.html new file mode 100644 index 0000000..9bf8e6b --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.hideNodes.html @@ -0,0 +1,29 @@ +
+
+

Function(treeNodes)zTreeObj.hideNodes

+

Overview[ depends on jquery.ztree.exhide js ]

+
+

+
+

To hide a group of nodes.

+

1. This feature can't support the 'exedit' feature, so please don't use this feature in edit mode.

+

2. If you hide or show the nodes, it will effect the 'isFirstNode' and 'isLastNode' attribute.

+

3. Please use zTree object to executing the method.

+
+
+

Function Parameter Descriptions

+
+

treeNodesArray(JSON)

+

the array of the nodes which will be hidden

+

Please ensure that this data object is an internal node data object in zTree.

+

Retrun none

+

no return value

+
+

Examples of function

+

1. hide the first root node's children.

+
var treeObj = $.fn.zTree.getZTreeObj("tree");
+var nodes = treeObj.getNodes();
+treeObj.hideNodes(nodes[0].children);
+
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.moveNode.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.moveNode.html new file mode 100644 index 0000000..93f066b --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.moveNode.html @@ -0,0 +1,49 @@ +
+
+

Function(targetNode, treeNode, moveType, isSilent)zTreeObj.moveNode

+

Overview[ depends on jquery.ztree.exedit js ]

+
+

+
+

Move the node

+

Please use zTree object to executing the method.

+
+
+

Function Parameter Descriptions

+
+

targetNodeJSON

+

JSON data object of the node which will be target.

+

If move the node to root node, please set the 'targetNode' to null.

+

Please ensure that this data object is an internal node data object in zTree.

+

treeNodeJSON

+

JSON data object of the node which will be moved.

+

Please ensure that this data object is an internal node data object in zTree.

+

moveTypeString

+

Moved to the target node's relative position.

+

"inner" means: to be taregetNode's child node.

+

"prev" means: to be taregetNode's previous sibling node.

+

"next" means: to be taregetNode's next sibling node.

+

isSilentBoolean

+

After move the node, whether to automatically expand its parent node.

+

isSilent = true means: don't expand its parent node.

+

isSilent = false or omit this parameter means: expand its parent node.

+

Return JSON

+

return the node which be moved, it is same as the 'treeNode' parameter.

+

Return null means: move node has failed. The cause:
+  1. the targetNode is the treeNode's parent node, and moveType = "inner"
+  2. the targetNode is the treeNode's child node. +

+
+

Examples of function

+

1. Move the second root node to the first root node's child node.

+
var treeObj = $.fn.zTree.getZTreeObj("tree");
+var nodes = treeObj.getNodes();
+treeObj.moveNode(nodes[0], nodes[1], "inner");
+
+

2. Move the second root node to the first root node's previous sibling node.

+
var treeObj = $.fn.zTree.getZTreeObj("tree");
+var nodes = treeObj.getNodes();
+treeObj.moveNode(nodes[0], nodes[1], "prev");
+
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.reAsyncChildNodes.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.reAsyncChildNodes.html new file mode 100644 index 0000000..63a0896 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.reAsyncChildNodes.html @@ -0,0 +1,42 @@ +
+
+

Function(parentNode, reloadType, isSilent)zTreeObj.reAsyncChildNodes

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

Forced asynchronous loading child nodes of parent node. It is valid when [setting.async.enable = true]

+

You can use this method to reload child nodes.

+

Please use zTree object to executing the method.

+
+
+

Function Parameter Descriptions

+
+

parentNodeJSON

+

The parent node which will asynchronous loading child nodes.

+

1. If parentNode = null, it is same as reload root nodes.

+

2. If parentNode.isParent = false, don't load nodes.

+

3. Please ensure that this data object is an internal node data object in zTree.

+

reloadTypeString

+

reloadType = "refresh" means: reload child nodes.

+

reloadType != "refresh" means: append to load child nodes.

+

isSilentBoolean

+

Set whether to automatically expand the parent node, after load nodes.

+

isSilent = true means: don't auto expand the parent node. Otherwise auto expand.

+

Return none

+

no return value

+
+

Examples of function

+

1. reload root nodes

+
var treeObj = $.fn.zTree.getZTreeObj("tree");
+treeObj.reAsyncChildNodes(null, "refresh");
+
+

2. reload the first selected node's child nodes.

+
var treeObj = $.fn.zTree.getZTreeObj("tree");
+var nodes = treeObj.getSelectedNodes();
+if (nodes.length>0) {
+	treeObj.reAsyncChildNodes(nodes[0], "refresh");
+}
+
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.refresh.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.refresh.html new file mode 100644 index 0000000..8316192 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.refresh.html @@ -0,0 +1,24 @@ +
+
+

Function()zTreeObj.refresh

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

Refresh zTree

+

If you have no special need, try not to use this method. If you refresh single node, please use updateNode() method. If you refresh child nodes in dynamic mode, please use the reAsyncChildNodes() method.

+

Please use zTree object to executing the method.

+
+
+

Function Parameter Descriptions

+
+

Return none

+

no return value

+
+

Examples of function

+

1. refresh zTree

+
var treeObj = $.fn.zTree.getZTreeObj("tree");
+treeObj.refresh();
+
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.removeChildNodes.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.removeChildNodes.html new file mode 100644 index 0000000..c249e17 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.removeChildNodes.html @@ -0,0 +1,32 @@ +
+
+

Function(parentNode)zTreeObj.removeChildNodes

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

Remove a parent node's child nodes

+

1. After remove child nodes, the parent node will become a leaf node. Such as the need to maintain the parent node is still a parent node, set 'setting.data.keep.parent' attribute.

+

2. Do not use this method to empty the root. If you need to empty the root, you can initialization zTree, and set the initial nodes is null.

+

3. This method does not trigger any callback function.

+

Please use zTree object to executing the method.

+
+
+

Function Parameter Descriptions

+
+

parentNodeJSON

+

The parent node which need to clear its child nodes.

+

Please ensure that this data object is an internal node data object in zTree.

+

Return Array(JSON)

+

Return the parent node's child nodes which have been removed. If has no child nodes, return null.

+
+

Examples of function

+

1. Remove the first selected node's child nodes

+
var treeObj = $.fn.zTree.getZTreeObj("tree");
+var nodes = treeObj.getSelectedNodes();
+if (nodes && nodes.length>0) {
+	treeObj.removeChildNodes(nodes[0]);
+}
+
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.removeNode.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.removeNode.html new file mode 100644 index 0000000..605322f --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.removeNode.html @@ -0,0 +1,34 @@ +
+
+

Function(treeNode, callbackFlag)zTreeObj.removeNode

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

Remove a node

+

Use removeNode() method of zTree v3.x can trigger 'beforeRemove / onRemove' callback function. for reduce redundant code.

+

Please use zTree object to executing the method.

+
+
+

Function Parameter Descriptions

+
+

treeNodeJSON

+

JSON data object of the node which will be removed.

+

Please ensure that this data object is an internal node data object in zTree.

+

callbackFlagBoolean

+

callbackFlag = true means: call this method, will trigger 'beforeRemove' & 'onRemove' callback.

+

callbackFlag = false means: call this method, will not trigger callback.

+

If this parameter is omitted, it is same as 'callbackFlag = false'

+

Return none

+

no return value

+
+

Examples of function

+

1. Remove all of the selected nodes.

+
var treeObj = $.fn.zTree.getZTreeObj("tree");
+var nodes = treeObj.getSelectedNodes();
+for (var i=0, l=nodes.length; i < l; i++) {
+	treeObj.removeNode(nodes[i]);
+}
+
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.selectNode.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.selectNode.html new file mode 100644 index 0000000..237f199 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.selectNode.html @@ -0,0 +1,34 @@ +
+
+

Function(treeNode, addFlag)zTreeObj.selectNode

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

Select a node

+

zTree v3.x supports select multiple nodes.

+

Please use zTree object to executing the method.

+
+
+

Function Parameter Descriptions

+
+

treeNodeJSON

+

JSON data object of the node which will be selected.

+

Please ensure that this data object is an internal node data object in zTree.

+

addFlagBoolean

+

addFlag = true means: append to select node, don't affect the previously selected node, can select multiple nodes.

+

addFlag = false means: select single node, prior the selected node is deselected.

+

If setting.view.selectedMulti = false, this para, this parameter is not valid, always select single node

+

Return none

+

no return value

+
+

Exampleso of function

+

1. Select single node which be first selected.

+
var treeObj = $.fn.zTree.getZTreeObj("tree");
+var nodes = treeObj.getNodes();
+if (nodes.length>0) {
+	treeObj.selectNode(nodes[0]);
+}
+
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.setChkDisabled.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.setChkDisabled.html new file mode 100644 index 0000000..1d645e8 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.setChkDisabled.html @@ -0,0 +1,44 @@ +
+
+

Function(node, disabled, inheritParent, inheritChildren)zTreeObj.setChkDisabled

+

Overview[ depends on jquery.ztree.excheck js ]

+
+

+
+

Set the node's checkbox or radio is disabled or remove disabled. It is valid when [setting.check.enable = true]

+

1. After the node's checkbox / radio is disabled, it can not be checked or unchecked, but it can affect the half-checked status of the parent node.

+

2. Please do not directly modify the 'chkDisabled' attribute of the loaded node.

+

3. Please use zTree object to executing the method.

+
+
+

Function Parameter Descriptions

+
+

treeNodeJSON

+

JSON data object of the node which need to be checked or unchecked.

+

Please ensure that this data object is an internal node data object in zTree.

+

disabledBoolean

+

disabled = true means: the node's checkbox / radio is disabled.

+

disabled = false means: the node's checkbox / radio is removed disabled.

+

If this parameter is omitted, it is same as disabled = false

+

Don't affect the node which 'nochecked' attribute is true.

+

inheritParentBoolean

+

inheritParent = true means: all parent nodes's disabled status will be same as this node.

+

inheritParent = false means: all parent nodes's disabled status will be not affected.

+

If this parameter is omitted, it is same as 'inheritParent = false'

+

inheritChildrenBoolean

+

inheritChildren = true means: all child nodes's disabled status will be same as this node.

+

inheritChildren = false means: all child nodes's disabled status will be not affected.

+

If this parameter is omitted, it is same as 'inheritChildren = false'

+

Return none

+

no return value

+
+

Examples of function

+

1. Set the selected nodes's checkbox / radio to be disabled.

+
var treeObj = $.fn.zTree.getZTreeObj("tree");
+var nodes = treeObj.getSelectedNodes();
+for (var i=0, l=nodes.length; i < l; i++) {
+	treeObj.setChkDisabled(nodes[i], true);
+}
+
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.setEditable.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.setEditable.html new file mode 100644 index 0000000..a44b0ff --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.setEditable.html @@ -0,0 +1,27 @@ +
+
+

Function(editable)zTreeObj.setEditable

+

Overview[ depends on jquery.ztree.exedit js ]

+
+

+
+

Edit mode and normal mode switch.

+

To use edit mode, please set the attributes in 'setting.edit'

+

Please use zTree object to executing the method.

+
+
+

Function Parameter Descriptions

+
+

editableBoolean

+

true means: set zTree to edit mode.

+

false means: set zTree to normal mode.

+

Return none

+

no return value

+
+

Examples of function

+

1. set zTree to edit mode

+
var treeObj = $.fn.zTree.getZTreeObj("tree");
+treeObj.setEditable(true);
+
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.setting.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.setting.html new file mode 100644 index 0000000..d80c139 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.setting.html @@ -0,0 +1,14 @@ +
+
+

JSONzTreeObj.setting

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

The configuration data of zTree, refer to "setting details"

+

zTree v3.x to cancel the original operation setting method, so users can modify.

+

Note: Modify the parameters which affect zTree initialization will not work, please first understand the different attributes.

+
+
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.showNode.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.showNode.html new file mode 100644 index 0000000..53b5cbd --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.showNode.html @@ -0,0 +1,31 @@ +
+
+

Function(treeNode)zTreeObj.showNode

+

Overview[ depends on jquery.ztree.exhide js ]

+
+

+
+

To hide any node which be hidden.

+

1. This feature can't support the 'exedit' feature, so please don't use this feature in edit mode.

+

2. If you hide or show the nodes, it will effect the 'isFirstNode' and 'isLastNode' attribute.

+

3. Please use zTree object to executing the method.

+
+
+

Function Parameter Descriptions

+
+

treeNodesArray(JSON)

+

JSON data object of the node which will be shown

+

Please ensure that this data object is an internal node data object in zTree.

+

Retrun none

+

no return value

+
+

Examples of function

+

1. show someone node which be hidden.

+
var treeObj = $.fn.zTree.getZTreeObj("tree");
+var node = treeObj.getNodeByParam("isHidden", true);
+if (node) {
+  treeObj.showNode(node);
+}
+
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.showNodes.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.showNodes.html new file mode 100644 index 0000000..c0c926c --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.showNodes.html @@ -0,0 +1,29 @@ +
+
+

Function(treeNodes)zTreeObj.showNodes

+

Overview[ depends on jquery.ztree.exhide js ]

+
+

+
+

To show a group of nodes which be hidden.

+

1. This feature can't support the 'exedit' feature, so please don't use this feature in edit mode.

+

2. If you hide or show the nodes, it will effect the 'isFirstNode' and 'isLastNode' attribute.

+

3. Please use zTree object to executing the method.

+
+
+

Function Parameter Descriptions

+
+

treeNodesArray(JSON)

+

the array of the nodes which will be shown

+

Please ensure that this data object is an internal node data object in zTree.

+

Retrun none

+

no return value

+
+

Examples of function

+

1. show all of the nodes which be hidden.

+
var treeObj = $.fn.zTree.getZTreeObj("tree");
+var nodes = treeObj.getNodesByParam("isHidden", true);
+treeObj.showNodes(nodes);
+
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.transformToArray.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.transformToArray.html new file mode 100644 index 0000000..4b2296d --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.transformToArray.html @@ -0,0 +1,27 @@ +
+
+

Function(treeNodes)zTreeObj.transformToArray

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

+

Transform the zTree nodes data into simple array. (To avoid the user to write code to traverse all nodes)

+

Please use zTree object to executing the method.

+
+
+

Function Parameter Descriptions

+
+

treeNodesArray(JSON) / JSON

+

JSON data object of the node which need to be transformed.

+

or JSON data objects collection of the nodes which need to be transformed.

+

Return Array(JSON)

+

The JSON data objects array of the nodes which be transformed.

+
+

Examples of function

+

1. Transform the zTree nodes data into simple array.

+
var treeObj = $.fn.zTree.getZTreeObj("tree");
+var nodes = treeObj.transformToArray(treeObj.getNodes());
+
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.transformTozTreeNodes.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.transformTozTreeNodes.html new file mode 100644 index 0000000..51d4a62 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.transformTozTreeNodes.html @@ -0,0 +1,44 @@ +
+
+

Function(simpleNodes)zTreeObj.transformTozTreeNodes

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

Transform the simple array into zTree nodes data.

+

If you use this method, you must set 'setting.data.simpleData.idKey' and 'setting.data.simpleData.pIdKey' attribute, and let the data are consistent with parent-child relationship.

+

Please use zTree object to executing the method.

+
+
+

Function Parameter Descriptions

+
+

simpleNodesArray(JSON) / JSON

+

JSON data object of the node which need to be transformed.

+

or JSON data objects array of the nodes which need to be transformed.

+

Return Array(JSON)

+

Standard data which zTree use. The child nodes are stored in the parent node's 'children' attribute.

+

If simpleNodes is a single JSON, so the return array's length is 1.

+
+

Examples of function

+

1. Transform the simple array data into zTree nodes format.

+
var setting = {
+	data: {
+		simpleData: {
+			enable: true,
+			idKey: "id",
+			pIdKey: "pId",
+			rootPId: 0,
+		}
+	}
+};
+var simpleNodes = [
+    {"id":1, "pId":0, "name":"test1"},
+    {"id":11, "pId":1, "name":"test11"},
+    {"id":12, "pId":1, "name":"test12"},
+    {"id":111, "pId":11, "name":"test111"}
+];
+var treeObj = $.fn.zTree.getZTreeObj("tree");
+var nodes = treeObj.transformTozTreeNodes(simpleNodes);
+
+
+
\ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.updateNode.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.updateNode.html new file mode 100644 index 0000000..7639ff4 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.updateNode.html @@ -0,0 +1,37 @@ +
+
+

Function(treeNode, checkTypeFlag)zTreeObj.updateNode

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

Update node data. Primarily used to update the node's DOM.

+

1. Can update the attributes for display (e.g. 'name', 'target', 'url', 'icon', 'iconSkin', 'checked', 'nocheck'), do not update the other attributes. For example: If you need to expand the node, please use expandNode() method, do not modify the 'open' attribute.

+

2. Use updateNode() method of zTree can't trigger 'beforeCheck' or 'onCheck' callback function.

+

Please use zTree object to executing the method.

+
+
+

Function Parameter Descriptions

+
+

treeNodeJSON

+

JSON data object of the node which need to update.

+

Please ensure that this data object is an internal node data object in zTree.

+

checkTypeFlagBoolean

+

checkTypeFlag = true means: According to 'setting.check.chkboxType' attribute automatically check or uncheck the parent and child nodes.

+

checkTypeFlag = false means: only check or uncheck this node, don't affect its parent and child nodes.

+

This parameter is valid when 'setting.check.enable = true' and 'setting.check.chkStyle = "checkbox"'

+

Don't affect the parent and child nodes which 'nochecked' attribute is true.

+

Return none

+

no return value

+
+

Examples of function

+

1. Modify the first selected node's name, and update it.

+
var treeObj = $.fn.zTree.getZTreeObj("tree");
+var nodes = treeObj.getNodes();
+if (nodes.length>0) {
+	nodes[0].name = "test";
+	treeObj.updateNode(nodes[0]);
+}
+
+
+
\ No newline at end of file -- cgit 1.2.3-korg