simonexmachina / jquery-bonsai

Super lightweight jQuery tree plugin
http://simonwade.me/jquery-bonsai
MIT License
148 stars 42 forks source link

how to use JSON #11

Closed 3tlam closed 9 years ago

3tlam commented 9 years ago

Thanks for that awesome plugin.

Unfortunately I can't seem to get the JSON to be working. Looking at your example and the example.json, I am confused as to what editable does (it does not seem to make a difference whether it is true or false)

Neither is "North Sydney" selected - although the option selected is set to true

Any ideas?

My use case: I have a (nested) list of several hundred items and some of them can be selected and some are not. The selection will be saved (using PHP) into a database and read from there to edit it

3tlam commented 9 years ago

I've solved it... reading the docs under http://www.jstree.com/docs was a bit confusing, but the github readme helped :)