Sha256: 613b76065d4fd904c25eda204f069b37c6f405c46c6ec7a2581b0cc55d530191

Contents?: true

Size: 1.37 KB

Versions: 2

Compression:

Stored size: 1.37 KB

Contents

#jsTree for rails asset pipeline

[jsTree](https://github.com/vakata/jstree) is jquery plugin, that provides interactive trees. It is absolutely free, open source and distributed under the MIT license.

The `jstree-rails-4` gem integrates the `jsTree` jQuery plugin with the Rails asset pipeline.

GemVersion: 3.3.8

jsTree Version: 3.3.8

## Usage

### Install jstree-rails-4 gem

Add `jstree-rails-4` to your Gemfile and run `bundle install`:

  `gem "jstree-rails-4"`

### Include jstree-rails-4 javascript assets

Add the following to your `app/assets/javascripts/application.js`:

  `//= require jstree`

### Include jstree-rails-4 stylesheet assets

Add to your `app/assets/stylesheets/application.css`:

  `*= require jstree-default`  <--- TO USE DEFAULT THEME

  `*= require jstree-default-dark`  <--- TO USE DEFAULT DARK THEME

## Contributions

If you want to contribute, please:

  * Fork the project.
  * Make your feature addition or bug fix.
  * Send me a pull request on Github.

## How to pull new version of jsTree yourself

Use command line:

  * bundle install
  * ruby -r './lib/jstree-rails-4/source_file.rb' -e 'SourceFile.new.fetch'
  * Choose version and enter 'Y' on each request
  * ruby -r './lib/jstree-rails-4/source_file.rb' -e 'SourceFile.new.convert'

## License

jsTree-Rails-4 is [free and unencumbered software released into the public domain](http://unlicense.org).

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
jstree-rails-4-rivsc-3.3.8.1 README.md
jstree-rails-4-3.3.8 README.md