No commit activity in last 3 years
No release in over 3 years
This gem provides jQuery simpleTree for Rails > 3.1 applications
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.13
~> 10.0

Runtime

 Project Readme

jquery-simpletree-rails

This gem provides the jquery simpleTree plugin found at https://github.com/mauntrelio/jquery-simpletree/ for the Rails asset pipeline.

Installation

Add this line to your application's Gemfile:

gem 'jquery-simpletree-rails'

And then execute:

$ bundle install

Add this to 'app/assets/javascripts/application.js':

//= require simpleTree/jquery.simpletree

Add this to 'app/assets/stylesheets/application.css':

*= require simpleTree/_simpleTree

Or, if you use scss:

@import 'simpleTree/simpleTree';

to 'app/assets/stylesheets/application.scss'.

That's it!

Now, to apply the treeview, you need to manage from your JavaScript code, for instance:

$(document).ready(function(){
	$('ul.treeview').simpleTree();
});

Please have a look to https://github.com/mauntrelio/jquery-simpletree/ for further information about APIs (collapse, expand, repaint, etc..);