Repository is archived
No commit activity in last 3 years
No release in over 3 years
jquery ztree resources files packaged for the Rails asset pieline
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

jquery-ztree-rails

This gem packages the jQuery zTree plugin for easy use with the Rails asset pipleine.

General Installation

  1. Add to the assets group in your Gemfile:
 gem 'jquery-ztree-rails'
  1. Install the gem:
 bundle install
  1. Add the JavaScript to application.js:
//= require ztree.core
//= require ztree.excheck
//= require ztree.exedit
//= require ztree.exhide
//= require ztree.all # include ztree.core, ztree.excheck, ztree.exedit
  1. Add the stylesheets to application.css:
/*
 *= require ztree
 */

Example

$.fn.zTree.init($('#treeId'), setting, nodes);