dkhlystov / jquery-treegrid Goto Github PK
View Code? Open in Web Editor NEWTreeGrid jquery plugin
License: MIT License
TreeGrid jquery plugin
License: MIT License
[v] node 1-2
ㄴ node 1-2-1
ㄴ node 1-2-2
<---- target
node 1-3
ㄴ node 1-3-1
node 1-2 moving to target.
same position, results are different.
result:
ㄴ Node 1-2-2
Node 1-2
ㄴ Node 1-2-1
Node 1-3
ㄴ Node 1-3-1
I have tried the following code:
First I already make the table with all items collapsed, this work well.
$('#table').treegrid();
Then, i want to have a button to expand all and/or collapse all. But i didn't work.
Code:
$('#table').treegrid('expand');
$('#table').treegrid('collapse');
Thank you for your time.
I'm using the following version:
/*
While upgraded to jQuery 3.2, I got an error: Uncaught TypeError: Cannot create property 'guid' on string '.doc-delete'
if ( !handler.guid ) {
handler.guid = jQuery.guid++;
}
please test it. thanks.
Hi, what format for json to load data? Thx.
Hello
is there some examples for Expand All and Contract All nodes, please?
Thank you.
Hello
I try to make bigger expanded/collapsed icon but can not figure out how to do that.
If I use default width/height style, icon is not centered on both cases. For example, I can perfect size it on collapsed state but when expanded, it is not positioned on the middle and vice-versa.
Thank you for your ideas.
a child node has grandson node,and this child node is the last of the parent node,when move the child node to parent node,the child node will display behind the grandson node:
before:
Root node
--- Child node
------ Grandson node
after:(drag child node to root node,positon is 1-inside)
Root node
------ Grandson node
--- Child node
this is the code in jquery.treegrid.js
move: function(target, position) {
...
if (position == 0) $tr = target.prev();
else $tr = _getBranch(target).last();//$tr is the last,if $tr is its grandson node
...
//moving
$branch = _getBranch(this);
if ($tr.length) $branch.insertAfter($tr);//when child move ,it not display well
else $branch.prependTo(this.parent());
...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.