当前位置:网站首页>Ztree custom title attribute
Ztree custom title attribute
2022-07-27 09:03:00 【IChocolateKapa】
Need to be in setting in data Good regulation key Medium title Which field in the data is displayed :
var setting = {
data: {
simpleData: {
enable: true
},
key: {
title: "description"
}
}
};also , The data needs to have description attribute :
var zNodes =[
{ id:1, pId:0, name:" My program ", open:true, description: "jdskagt54y465y64ryhjfkjfi"},
{ id:11, pId:1, name:" Common programs ", description: "j6t56dskajfkjfi"},
{ id:111, pId:11, name:"Portable file", description: "jdskaj646fkjfi"},
{ id:112, pId:11, name:"Executable file", description: "jdskajfkjfi"},
{ id:113, pId:11, name:"Shared object files", description: "635654376"},
{ id:2, pId:0, name:" Xiao Ming Wang 01 The program ", description: "jr43wdskajfkjfi"},
{ id:3, pId:0, name:" Zhang Ming 04 The program ", description: "cxsfre"},
{ id:4, pId:0, name:" Li Mingming's procedure ", description: "r43w"},
{ id:5, pId:0, name:" Zhao Daming 01 The program ", description: "yt5ry6"}
];When manually updating title when ,
var zTree = $.fn.zTree.getZTreeObj("tree"),
nodes = zTree.getSelectedNodes(),
treeNode = nodes[0];
treeNode.description = description;
zTree.updateNode(treeNode); Reference article : http://www.stepday.com/topic/?693 http://www.stepday.com/topic/?693
边栏推荐
- 【Flutter -- GetX】准备篇
- Solve the problem of Chinese garbled code on the jupyter console
- Rewrite the tensorrt version deployment code of yolox
- Pytorch custom CUDA operator tutorial and runtime analysis
- NIO总结文——一篇读懂NIO整个流程
- 1.3.1 Full Permutation Problem
- Test picture
- Full Permutation (depth first, permutation tree)
- flex:1的原理
- Apple cut its price by 600 yuan, which was almost a devastating blow to the collapse of its domestic flagship mobile phone
猜你喜欢

4276. Good at C

flex布局 (实战小米官网)
![2040: [Blue Bridge Cup 2022 preliminary] bamboo cutting (priority queue)](/img/76/512b7fd4db55f9f7d8f5bcb646d9fc.jpg)
2040: [Blue Bridge Cup 2022 preliminary] bamboo cutting (priority queue)
![[I2C reading mpu6050 of Renesas ra6m4 development board]](/img/1b/c991dd0d798edbb7410a1e16f3a323.png)
[I2C reading mpu6050 of Renesas ra6m4 development board]

【微服务~Sentinel】Sentinel之dashboard控制面板

Pyqt5 rapid development and practice 4.1 qmainwindow

拍卖行做VC,第一次出手就投了个Web3

As a VC, the auction house invested Web3 for the first time
![[interprocess communication IPC] - semaphore learning](/img/47/b76c329e748726097219abce28fce8.png)
[interprocess communication IPC] - semaphore learning

CUDA Programming -03: thread level
随机推荐
Is the operation of assigning values to int variables atomic?
【进程间通信IPC】- 信号量的学习
[flutter -- geTx] preparation
Activation functions commonly used in deep learning
Built in method of tensorflow model training and evaluation
Test picture
vscod
Hangzhou E-Commerce Research Institute released an explanation of the new term "digital existence"
CUDA programming-02: first knowledge of CUDA Programming
NIO this.selector.select()
Low cost, low threshold, easy deployment, a new choice for the digital transformation of 48 million + small and medium-sized enterprises
4274. Suffix expression
Explain cache consistency and memory barrier
CUDA programming-01: build CUDA Programming Environment
NiO Summary - read and understand the whole NiO process
async/await的执行顺序以及宏任务和微任务
linux下安装oracle,本地PL/SQL连接Linux下的oracle导入表并新建用户和密码
Arm undefined instruction exception assembly
Implementation of queue (sequential storage, chain storage)
tensorflow包tf.keras模块构建和训练深度学习模型