zTree v2.6 速查表 -- 作者:Hunter.z 特别感谢 独上太行 的大力支持 【 # 标记为 v2.6 版本修改; * 标记为 v2.6 版本新增】
核心
-
zTree 核心函数
-
skin 皮肤说明
参数说明
-
setting 详解
- addDiyDom
- addHoverDom
- async
- *asyncDataFilter
- asyncParam
- asyncParamOther
- asyncUrl
- callback
- checkable
- checkedCol
- checkStyle
- checkRadioType
- checkType
- *dragCopy
- *dragMove
- edit_removeBtn
- edit_renameBtn
- editable
- expandSpeed
- fontCss
- isSimpleData
- keepLeaf
- keepParent
- nameCol
- nodesCol
- removeHoverDom
- root
- rootPID
- showIcon
- showLine
- treeNodeKey
- treeNodeParentKey
- [checkRadioCheckedList]
- [curEditTreeNode]
- [curTreeNode]
- [dragNodeShowBefore]
- [dragStatus]
- [expandTriggerFlag]
- [treeObjId]
参数说明
-
zTreeNodes 详解
- checked
- click
- icon
- *iconClose
- *iconOpen
- iconSkin
- isParent
- name
- *nocheck
- nodes
- open
- target
- url
- *自定义*
- [check_False_Full]
- [check_True_Full]
- [checkboxFocus]
- [checkedOld]
- [editNameStatus]
- [isAjaxing]
- [isFirstNode]
- [isHover]
- [isLastNode]
- [level]
- [parentNode]
- [tId]
方法
-
获取
- getChangeCheckedNodes()
- getCheckedNodes(checked)
- getNodeByParam(key, value)
- getNodeByTId(tID)
- getNodeIndex(treeNode)
- getNodes()
- getNodesByParam(key, value, parentNode)
- getNodesByParamFuzzy(key, value, parentNode)
- getSelectedNode()
- getSetting()
- transformToArray(treeNodes)
- transformTozTreeNodes(simpleTreeNodes)
-
操作
- addNodes(parentNode, newNodes, isSilent)
- *cancelInput(newName)
- cancelSelectedNode()
- checkAllNodes(checked)
- *copyNode(targetNode, treeNode, moveType)
- expandAll(expandSign)
- #expandNode(treeNode, expandSign, sonSign, focus)
- *inputNodeName(treeNode)
- moveNode(targetNode, treeNode, moveType)
- reAsyncChildNodes(parentNode, reloadType)
- refresh()
- removeNode(treeNode)
- selectNode(treeNode)
- setEditable(editable)
- updateNode(treeNode, checkTypeFlag)
- updateSetting(setting)
事件
-
callback 回调函数
- beforeAsync
- beforeChange
- beforeClick
- beforeCollapse
- *beforeDblclick
- beforeDrag
- beforeDrop
- beforeExpand
- beforeMouseDown
- beforeMouseUp
- beforeRemove
- beforeRename
- beforeRightClick
- *confirmDragOpen
- *confirmRename
- asyncError
- asyncSuccess
- change
- click
- collapse
- *dblclick
- drag
- drop
- expand
- mouseDown
- mouseUp
- nodeCreated
- remove
- rename
- rightClick
常量
-
背景线条相关
-
文件夹图标相关
-
className相关
-
CheckBox & Radio 相关
-
其他