2013-01-23 17:03:19 +01:00
|
|
|
# Jorgchart::Rails
|
|
|
|
|
2013-02-04 17:26:51 +01:00
|
|
|
jOrgChart for Rails. Bundled up jOrgChart into something useable with the Rails 3.1 asset pipeline
|
|
|
|
|
|
|
|
This gem include my forked version of jOrgChart (https://github.com/gdott9/jOrgChart/tree/my-master) which adds some features waiting to be merged.
|
|
|
|
Additionnal features :
|
|
|
|
* render list with multiple nodes on the first level (https://github.com/wesnolte/jOrgChart/pull/34)
|
|
|
|
* add an option to ignore space used by collapsed nodes (https://github.com/wesnolte/jOrgChart/pull/35)
|
2013-01-23 17:03:19 +01:00
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
|
|
|
Add this line to your application's Gemfile:
|
|
|
|
|
|
|
|
gem 'jorgchart-rails'
|
|
|
|
|
|
|
|
And then execute:
|
|
|
|
|
|
|
|
$ bundle
|
|
|
|
|
|
|
|
Or install it yourself as:
|
|
|
|
|
|
|
|
$ gem install jorgchart-rails
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
2013-02-04 17:26:51 +01:00
|
|
|
In application.js
|
|
|
|
```
|
|
|
|
//= require jquery.jorgchart
|
|
|
|
```
|
|
|
|
|
|
|
|
This gem comes with a stylesheet for default style. To use it, add the following line in application.css
|
|
|
|
```
|
|
|
|
//= require jquery.jorgchart
|
|
|
|
```
|
2013-01-23 17:03:19 +01:00
|
|
|
|
|
|
|
## Contributing
|
|
|
|
|
|
|
|
1. Fork it
|
|
|
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
|
|
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
|
|
|
4. Push to the branch (`git push origin my-new-feature`)
|
|
|
|
5. Create new Pull Request
|