Български

November 4, 2008

jsTree v.0.9.1

Filed under: Tech — Tags: , , — vakata @ 4:31 pm

The new version is out and available for download at Google Code.
The big news is that I managed to create a few example pages (@jstree.com). I am working on a fully featured example that will combine all the small example pages that are available now - it should be out in a few days.
Please post any bugs you may encounter and don’t forget to request features.
Speaking of features - since the last official download there are some big changes (check out the changelog).
To point out but a few - full multitree support - both trees must have rules.multitree set to true and the receiving tree’s rules are respected; instance manager - a list of trees is maintained and the currently focused one can be reached by tree_component.focusInst().

October 20, 2008

jstree.com

Filed under: Tech — Tags: — vakata @ 5:21 pm

Thanks to addwin (who supported jsTree with a donation) I managed to setup a mini-site @ jstree.com. The documentation is already transferred there along with the changelog. The new examples page is almost ready and will be up soon.
I am not a designer, so if anyone has a better idea for the design - please share :)
I am also wondering if I should set up a forum, or a ticket system … or just continue to use this blog and the GoogleCode page as a way to help out and gather ideas & bug reports.

October 9, 2008

jsTree v.0.8.1

Filed under: Tech — Tags: , , — vakata @ 11:56 am

This is a late post, actually. Version 0.8.1 has been up for some time now - the reason for this post is the download that was added, so you don’t need to check out.

The big news is that a new examples page is almost ready. As I have seen it is better to give working examples so that people can build on them, rather than read the documentation.

The list of changes in this version includes:

  • fixed renaming bug - a ‘ in the name brakes the rename (by anotherhero)
  • fixed #marker bug - plus sign not showing while dragging (by anotherhero)
  • onload callback (fired when: the tree is loaded for the first time, the tree or a node is refreshed)
  • * in dragrules (for example: “file * folder” means that a file-node can be before,after or inside a folder, “* inside folder” means any node can be inside a folder)
  • refreshing a single node is possible (in async mode)
  • passed json can now be an object, not an array of objects (by Marius Bratu)
  • onchange called in deselect_branch (by jstreeuser)
  • id is urlencoded when making calls to data.url (by Arjan Haverkamp)

Will post again as soon as the new examples page is done!

August 20, 2008

jsTree v.0.7

Filed under: Tech — Tags: , , — vakata @ 12:19 am

A even newer revision is available in the SVN, it includes fixes for almost all comments on this post so far, except for the multitree, which needs a lot of work. A new version will be out soon when I’m done with the documentation and examples.

Version 0.7 is out, though not throughly tested - I will keep testing so bear with me and submit any bugs or strange behavior you encounter.

  • Native support for async data loading is added (either JSON or XML)
  • A new “lock()” function is available to block any user interaction with the tree.
  • Customization of various strings used throughout the code (e.g. “New Folder”, “Loading …”) is now possible - you can now pass your own strings and even assign them to a language version.
  • There is a new hover_mode setting which forces the tree to change only the hover state and not the focus when using the get_* functions (usually used with keyboard shortcuts).
  • The options object is refactored - meaning that your current configs will not be functional!!! I’m sorry for this inconvineince but the options object was getting crowded and messy - now it is divided in groups - you can see a description in the documentation.
  • A setting was added so that now multiple selection is either always on, always off, or based on the Ctrl key (also fixed a couple of bugs with multiple selection).
  • A onrgtclk callback was added - so now you can display your own menu, and prevent the browser default.
  • The optional single-language XML structure is removed!!!. I noticed that nobody used it and it was rather confusing - now the xml structure is the same even if you have, or don’t have language versions.
  • Also a few other bugs were fixed.

All of the new stuff is included in the documentation. I’m working on the examples and downloader. I rushed this version out, as I might not be able to publish anything in the upcoming week. Still, I’ll be thankful for any ideas and critics you may have, so any feedback will be highly appreciated.

Thank you for all your ideas and contributions - I tried to include most of it in this version. If I missed a few things - remind me :). Let’s continue improving jsTree.

July 16, 2008

jsTree 0.6.5

Filed under: Tech — Tags: , , — vakata @ 11:16 am

Changes in this version:

  • tree now allows for some node sizing (see demo)
  • fixed bug when created nodes did not have the leaf class (by addwin)
  • optimized rtl position and images
  • fixed changing focus when closing focused node (by Karf)
  • fixed before- callbacks parameters (by Colin)
  • fixed dragging position (by Karf)
  • returned optional path parameter (by Karf)
  • added ondblclk callback, which defaults to toggle and then select node (by Arno)
  • tree object is passed as final argument in every callback

Still no time to finish the documentation - I hope I will get round to it soon.

July 1, 2008

jsTree 0.6

Filed under: Tech — Tags: , , — vakata @ 11:32 am

Version 0.6 is finally out, but without the new examples and new documentation - they will be out in a few days.
Changes in this version include:

  • added multiple selection with move & delete (use Ctrl - and “multiple : true” in the settings object)
  • added basic rtl support (user opinions?)
  • added getJSON - return the tree as an object
  • added drag & drop between trees with correct marker placement
  • added cookie support with definable prefix and options - default is false
  • added animation support (slideUp/slideDown) - specify duration (disabled for msie 6 - slow)
  • added insertAt option for creating nodes (’top’ or ‘bottom’)
  • optimized jQuery selectors
  • added cut/copy/paste + oncopy callback
  • added error callback - attach custom function to errors
  • added before handlers
  • optimized css, added ‘leaf’ class
  • added if selected node is within closed parent - select parent
  • added CSS solution when dragging large sets - all inner nodes are closed while dragging
  • added solid background color option (not white) - set background color on “li.last”, “.tree”
  • updated listen plugin
  • updated sarissa

June 21, 2008

jsTree 0.51

Filed under: Tech — Tags: , , — vakata @ 11:04 am

It has been a day since Ajaxian published a feed on jsTree - a tree javascript tree component. I did not expect that much attention, and it is obviously hard for people to contact me - so I decided to put a blog up.

I would love to get some ideas, critics and comments about the component so feel free to comment here or post issues at the projects page.

Expect new demos and docs soon.

Thanks to Ilia Goranov, flashBG.org, Kaloyan and Nikolay for spreading the word.