Code Monkey home page Code Monkey logo

jquery-treegrid's People

Contributors

dkhlystov avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

jquery-treegrid's Issues

move bug

[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 cannot use the functions expand and collapse

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:
/*

  • TreeGrid plugin v0.1.5
  • Copyright 2016 Dmitry Khlystov
  • Licensed under the MIT license
    */

ExpandAll/ContractAll

Hello
is there some examples for Expand All and Contract All nodes, please?
Thank you.

How to change width and height of expanded/collapsed icon?

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.

move bug

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());
  ...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.