Giter VIP home page Giter VIP logo

jstree-php-demos's People

Contributors

vakata avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jstree-php-demos's Issues

structure renaming issues

the given "class.tree.php" and "index.php" have the issue that not all items in structure can be customized.

To fix:
possibly add function to class:
public function get_options($id, $recursive = false) {
return $this->options;
}

and add following lines before first switch:
$options = $fs->get_options();
$nm = $options['data'][0];

and replace the following:
$v['id']
with
$v[$options['structure']['id']]

$v['rgt']
with
$v[$options['structure']['right']]

$v['lft']
with
$v[$options['structure']['left']]

'nm'
with
$nm

Filebrowser - images no longer renders in #data image

I remember long time ago the filebrowser demo would show the content of the selected image (*.png, *,jpg,...) when selected. I am not sure why it is not doing it anymore. Still shows correctly text based file content.

Drag n Drop within a tree with keyboard support

I am thinking of using JSTree for a project I am currently working on. I have just been reading upon it and looking at samples for past couple of days and I see that this will work great for most functionalities required. Just a few questions since I have not seen any samples illustrating if such a thing can be done.

I need to be able to drag a node and drop it on another node but I need to control how the dropped node behaves:

  1. when the node is dragged and dropped without any key being pressed I want the dropped node to be the last child of the target node.
  2. when the node is dragged and dropped while the ctrl key is pressed I want the dropped node to be the previous sibling of the target node.
  3. when the node is dragged and dropped while the shift key is pressed I want the dropped node to be the next sibling of the target node.

Can you give me some ideas about how I can do such a thing?

adding nodes per js

I want to add nodes per js.
I found this fiddle but it doesn't work anymore

https://jsfiddle.net/3q9Ma/223/

when I go through the code with the debugger

if(!this.check("create_node", node, par, pos)) {
				this.settings.core.error.call(this, this._data.core.last_error);
				return false;
			}

I'm calling
jst.create_node(jst.get_selected()[0])

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.