diff --git a/README.md b/README.md index ca9ff621e493b99d7361fb0b3ce65c9dd3f01be3..27085da09141bd1cf0b8088edf31e5a6dc6427f1 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ jQuery Tree Plugin ---- zTree ============ -last verson : 3.5.44 +last verson : 3.5.45 **Donate to zTree** : http://www.treejs.cn/v3/donate.php @@ -12,6 +12,12 @@ zTree API : http://www.treejs.cn/v3/api.php zTree Demo : http://www.treejs.cn/v3/demo.php +Install +============ +``` +npm install @ztree/ztree_v3 +``` + Introduction of zTree (简介) ============ * zTree is a multi-functional "tree plug-ins." based on jQuery. The main advantages of zTree includes excellent performance, flexible configuration, and the combination of multiple functions. diff --git a/api/API_cn.html b/api/API_cn.html index 9481170538f11e2461fdbf6145b96934a66489cf..9ff06cd95414b5282160fffcafe4456969ae3778 100644 --- a/api/API_cn.html +++ b/api/API_cn.html @@ -35,7 +35,7 @@
all.js = core + excheck + exedit ( 不包括 exhide ); 发现错误请及时通知,谢谢。
all.js = core + excheck + exedit ( without exhide ); if you found some mistakes please contact me.
用于使用自定义的方法动态渲染节点名称
+默认值:null
+v3.5.45+
+对应 zTree 利用 setting.key.name 获取到的节点名称
+待渲染节点的 JSON 数据对象
+针对根进行渲染时,treeNode = null
+返回值是 渲染后的节点名称
+
+ var setting = {
+ data: {
+ render: function(name,treeNode){
+ return name + treeNode.id;
+ }
+ }
+ };
+ ......
+ 用于使用自定义的方法动态渲染节点标题
+默认值:null
+v3.5.45+
+对应 zTree 利用 setting.key.title 获取到的节点标题
+待渲染节点的 JSON 数据对象
+针对根进行渲染时,treeNode = null
+返回值是 渲染后的节点标题
+
+ var setting = {
+ data: {
+ render: function(title,treeNode){
+ return title + treeNode.id;
+ }
+ }
+ };
+ ......
+ Used to dynamically render node name using custom methods
+Default: null
+v3.5.45+
+Node name obtained by setting.key.name
+JSON data object of the target node
+When will render the root, treeNode = null
+Return the name of the node you need to display
+
+ var setting = {
+ data: {
+ render: function(name,treeNode){
+ return name + treeNode.id;
+ }
+ }
+ };
+ ......
+ Used to dynamically render node title using custom methods
+Default: null
+v3.5.45+
+Node title obtained by setting.key.title
+JSON data object of the target node
+When will render the root, treeNode = null
+Return the title of the node you need to display
+
+ var setting = {
+ data: {
+ render: function(title,treeNode){
+ return title + treeNode.id;
+ }
+ }
+ };
+ ......
+