{"id":18300425,"url":"https://github.com/jpdevries/bonsai","last_synced_at":"2025-07-28T23:31:13.163Z","repository":{"id":8544749,"uuid":"10166036","full_name":"jpdevries/Bonsai","owner":"jpdevries","description":"Responsive jQuery Tree","archived":false,"fork":false,"pushed_at":"2016-01-20T15:22:36.000Z","size":939,"stargazers_count":6,"open_issues_count":1,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-22T01:42:01.255Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jpdevries.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-05-20T04:34:53.000Z","updated_at":"2020-02-19T07:04:08.000Z","dependencies_parsed_at":"2022-09-18T16:02:31.145Z","dependency_job_id":null,"html_url":"https://github.com/jpdevries/Bonsai","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpdevries%2FBonsai","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpdevries%2FBonsai/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpdevries%2FBonsai/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpdevries%2FBonsai/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jpdevries","download_url":"https://codeload.github.com/jpdevries/Bonsai/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227962269,"owners_count":17847912,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-05T15:12:22.533Z","updated_at":"2024-12-03T17:12:29.744Z","avatar_url":"https://github.com/jpdevries.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"bonsai.js\n======\n\nResponsive jQuery tree for you and me. [View the demo](http://jpdevries.github.io/Bonsai/demo).\n\n![](http://f.cl.ly/items/1W2q2812102E340e032d/Screen%20Shot%202013-08-23%20at%209.51.27%20PM.png)\n\n## Getting Started\n### Formatting HTML\nUsing Bonsai is easy as long as you feed it correctly formmated markup to consume. By default, each expandable item should have a 'folder' class, contain atleast one anchor tag and optionally have child folders.\nEach anchor tag should have the i tags displayed below and contain a title.\n\n```html\n    \u003cdiv class=\"bonsai\"\u003e\n        \u003cul class=\"section\"\u003e\n          \u003cli class=\"folder\"\u003e\n            \u003ca class=\"\" href=\"\"\u003e\u003ci class=\"icon-caret-right\"\u003e\u003c/i\u003e\u003ci class=\"icon-doctype icon-columns\"\u003e\u003c/i\u003eTemplates\u003ci class=\"icon-chevron-sign-right\"\u003e\u003c/i\u003e\u003c/a\u003e\n            \u003cul class=\"section\"\u003e\n              \u003cli class=\"folder\"\u003e\n                \u003ca class=\"\" href=\"\"\u003e\u003ci class=\"icon-caret-right\"\u003e\u003c/i\u003e\u003ci class=\"icon-folder icon-doctype icon-folder-close\"\u003e\u003c/i\u003eNavigation\u003ci class=\"icon-chevron-sign-right\"\u003e\u003c/i\u003e\u003c/a\u003e\n                \u003cul class=\"section\"\u003e\n                  \u003cli\u003e\u003ca href=\"\"\u003e\u003ci class=\"icon-filetype icon-doctype icon-columns\"\u003e\u003c/i\u003eheader\u003ci class=\"icon-chevron-sign-right\"\u003e\u003c/i\u003e\u003c/a\u003e\u003c/li\u003e\n                  \u003cli\u003e\u003ca href=\"\"\u003e\u003ci class=\"icon-filetype icon-doctype icon-columns\"\u003e\u003c/i\u003efooter\u003ci class=\"icon-chevron-sign-right\"\u003e\u003c/i\u003e\u003c/a\u003e\u003c/li\u003e\n                  \u003cli\u003e\u003ca href=\"\"\u003e\u003ci class=\"icon-filetype icon-doctype icon-columns\"\u003e\u003c/i\u003enavigation\u003ci class=\"icon-chevron-sign-right\"\u003e\u003c/i\u003e\u003c/a\u003e\u003c/li\u003e\n                  \u003cli\u003e\u003ca href=\"\"\u003e\u003ci class=\"icon-filetype icon-doctype icon-columns\"\u003e\u003c/i\u003emain-nav\u003ci class=\"icon-chevron-sign-right\"\u003e\u003c/i\u003e\u003c/a\u003e\u003c/li\u003e\n                  \u003cli\u003e\u003ca href=\"\"\u003e\u003ci class=\"icon-filetype icon-doctype icon-columns\"\u003e\u003c/i\u003efooter-open\u003ci class=\"icon-chevron-sign-right\"\u003e\u003c/i\u003e\u003c/a\u003e\u003c/li\u003e\n                  \u003cli\u003e\u003ca href=\"\"\u003e\u003ci class=\"icon-filetype icon-doctype icon-columns\"\u003e\u003c/i\u003efooter-close\u003ci class=\"icon-chevron-sign-right\"\u003e\u003c/i\u003e\u003c/a\u003e\u003c/li\u003e\n                  \u003cli\u003e\u003ca href=\"\"\u003e\u003ci class=\"icon-filetype icon-doctype icon-columns\"\u003e\u003c/i\u003ewrapper\u003ci class=\"icon-chevron-sign-right\"\u003e\u003c/i\u003e\u003c/a\u003e\u003c/li\u003e\n                  \u003cli\u003e\u003ca href=\"\"\u003e\u003ci class=\"icon-filetype icon-doctype icon-columns\"\u003e\u003c/i\u003ebody-content\u003ci class=\"icon-chevron-sign-right\"\u003e\u003c/i\u003e\u003c/a\u003e\u003c/li\u003e\n                \u003c/ul\u003e\n              \u003c/li\u003e\n            \u003c/ul\u003e\n          \u003c/li\u003e\n          \u003cli class=\"folder\"\u003e\n            \u003ca class=\"\" href=\"\"\u003e\u003ci class=\"icon-caret-right\"\u003e\u003c/i\u003e\u003ci class=\"icon-doctype icon-list-alt\"\u003e\u003c/i\u003eFields\u003ci class=\"icon-chevron-sign-right\"\u003e\u003c/i\u003e\u003c/a\u003e\n            \u003cul class=\"section\"\u003e\n              \u003cli class=\"folder\"\u003e\n                \u003ca class=\"\" href=\"\"\u003e\u003ci class=\"icon-caret-right\"\u003e\u003c/i\u003e\u003ci class=\"icon-folder icon-doctype icon-folder-close\"\u003e\u003c/i\u003eProduct\u003ci class=\"icon-chevron-sign-right\"\u003e\u003c/i\u003e\u003c/a\u003e\n                \u003cul class=\"section\"\u003e\n                  \u003cli\u003e\u003ca href=\"\"\u003e\u003ci class=\"icon-filetype icon-doctype icon-list-alt\"\u003e\u003c/i\u003ePrice\u003ci class=\"icon-chevron-sign-right\"\u003e\u003c/i\u003e\u003c/a\u003e\u003c/li\u003e\n                  \u003cli\u003e\u003ca href=\"\"\u003e\u003ci class=\"icon-filetype icon-doctype icon-list-alt\"\u003e\u003c/i\u003eInventory\u003ci class=\"icon-chevron-sign-right\"\u003e\u003c/i\u003e\u003c/a\u003e\u003c/li\u003e\n                \u003c/ul\u003e\n              \u003c/li\u003e\n            \u003c/ul\u003e\n          \u003c/li\u003e\n          \u003cli class=\"folder\"\u003e\n            \u003ca class=\"\" href=\"\"\u003e\u003ci class=\"icon-caret-right\"\u003e\u003c/i\u003e\u003ci class=\"icon-doctype icon-code\"\u003e\u003c/i\u003eSnippets\u003ci class=\"icon-chevron-sign-right\"\u003e\u003c/i\u003e\u003c/a\u003e\n            \u003cul class=\"section\"\u003e\n              \u003cli class=\"folder\"\u003e\n                \u003ca class=\"\" href=\"\"\u003e\u003ci class=\"icon-caret-right\"\u003e\u003c/i\u003e\u003ci class=\"icon-folder icon-doctype icon-folder-close\"\u003e\u003c/i\u003egetResources\u003ci class=\"icon-chevron-sign-right\"\u003e\u003c/i\u003e\u003c/a\u003e\n                \u003cul class=\"section\"\u003e\n                  \u003cli\u003e\u003ca href=\"\"\u003e\u003ci class=\"icon-filetype icon-doctype icon-code\"\u003e\u003c/i\u003egetResources\u003ci class=\"icon-chevron-sign-right\"\u003e\u003c/i\u003e\u003c/a\u003e\u003c/li\u003e\n                \u003c/ul\u003e\n              \u003c/li\u003e\n            \u003c/ul\u003e\n          \u003c/li\u003e\n        \u003c/ul\u003e\n      \u003c/div\u003e\n```\n\n## Using the Plugin\nCall the bonsai jQuery plugin like so on the element(s) of your choice:\n\n```js\n// create a new bonsai\nvar mytree = new $.bonsai($('.bonsai'));\n````\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpdevries%2Fbonsai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjpdevries%2Fbonsai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpdevries%2Fbonsai/lists"}