diff --git a/.gitignore b/.gitignore
index 53a5344..435cf9a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,3 @@
/nbproject
+/node_modules
+/bower_modules
\ No newline at end of file
diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index f7b38bd..ceae8f5 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -1,3 +1,10 @@
+== 0.3.0 - 03 February 2015
+* Perfomance optimization
+* Bootstrap 3 update
+* Add minifiyed js
+* Add npm installation
+* Add borew installation
+
== 0.2.1 - 21 January 2014
* Add events support
diff --git a/Gruntfile.js b/Gruntfile.js
new file mode 100644
index 0000000..3de7d34
--- /dev/null
+++ b/Gruntfile.js
@@ -0,0 +1,23 @@
+module.exports = function(grunt) {
+
+ // Project configuration.
+ grunt.initConfig({
+ pkg: grunt.file.readJSON('package.json'),
+ uglify: {
+ options: {
+ banner: '/*! <%= pkg.name %> <%= pkg.version %> */\n'
+ },
+ build: {
+ src: 'js/jquery.treegrid.js',
+ dest: 'js/jquery.treegrid.min.js'
+ }
+ }
+ });
+
+ // Load the plugin that provides the "uglify" task.
+ grunt.loadNpmTasks('grunt-contrib-uglify');
+
+ // Default task(s).
+ grunt.registerTask('default', ['uglify']);
+
+};
\ No newline at end of file
diff --git a/README.md b/README.md
index ca994f7..002d458 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,21 @@
-jquery-treegrid
-===============
-
TreeGrid plugin for jQuery
+==========
+
+See more information at http://maxazan.github.io/jquery-treegrid
+
+## Installation
+
+
+### Using npm
+```
+npm install jquery-treegrid
+```
+
+### Using bower
+```
+bower install jquery-treegrid
+```
+
+### From source
-See more information at http://maxazan.github.io/jquery-treegrid
\ No newline at end of file
+Download [source](https://github.com/maxazan/jquery-treegrid/archive/master.zip) from github.com
diff --git a/bower.json b/bower.json
index 7943f9e..1988770 100644
--- a/bower.json
+++ b/bower.json
@@ -1,7 +1,7 @@
{
"name": "jquery-treegrid",
"description": "TreeGrid plugin for jQuery.",
- "version": "0.2.0",
+ "version": "0.3.0",
"homepage": "http://maxazan.github.io/jquery-treegrid",
"license": "MIT",
"ignore": [
@@ -26,5 +26,8 @@
"dependencies": {
"jquery": ">= 1.9.1",
"jquery.cookie": ">= 1.4.1"
- }
+ },
+ "authors": [
+ "Maksym Pomazan"
+ ]
}
diff --git a/docs/css/default.min.css b/docs/css/default.min.css
new file mode 100644
index 0000000..a75ba5e
--- /dev/null
+++ b/docs/css/default.min.css
@@ -0,0 +1 @@
+pre code{display:block;padding:.5em;background:#f0f0f0}pre code,pre .subst,pre .tag .title,pre .lisp .title,pre .clojure .built_in,pre .nginx .title{color:black}pre .string,pre .title,pre .constant,pre .parent,pre .tag .value,pre .rules .value,pre .rules .value .number,pre .preprocessor,pre .ruby .symbol,pre .ruby .symbol .string,pre .aggregate,pre .template_tag,pre .django .variable,pre .smalltalk .class,pre .addition,pre .flow,pre .stream,pre .bash .variable,pre .apache .tag,pre .apache .cbracket,pre .tex .command,pre .tex .special,pre .erlang_repl .function_or_atom,pre .markdown .header{color:#800}pre .comment,pre .annotation,pre .template_comment,pre .diff .header,pre .chunk,pre .markdown .blockquote{color:#888}pre .number,pre .date,pre .regexp,pre .literal,pre .smalltalk .symbol,pre .smalltalk .char,pre .go .constant,pre .change,pre .markdown .bullet,pre .markdown .link_url{color:#080}pre .label,pre .javadoc,pre .ruby .string,pre .decorator,pre .filter .argument,pre .localvars,pre .array,pre .attr_selector,pre .important,pre .pseudo,pre .pi,pre .doctype,pre .deletion,pre .envvar,pre .shebang,pre .apache .sqbracket,pre .nginx .built_in,pre .tex .formula,pre .erlang_repl .reserved,pre .prompt,pre .markdown .link_label,pre .vhdl .attribute,pre .clojure .attribute,pre .coffeescript .property{color:#88F}pre .keyword,pre .id,pre .phpdoc,pre .title,pre .built_in,pre .aggregate,pre .css .tag,pre .javadoctag,pre .phpdoc,pre .yardoctag,pre .smalltalk .class,pre .winutils,pre .bash .variable,pre .apache .tag,pre .go .typename,pre .tex .command,pre .markdown .strong,pre .request,pre .status{font-weight:bold}pre .markdown .emphasis{font-style:italic}pre .nginx .built_in{font-weight:normal}pre .coffeescript .javascript,pre .javascript .xml,pre .tex .formula,pre .xml .javascript,pre .xml .vbscript,pre .xml .css,pre .xml .cdata{opacity:.5}
\ No newline at end of file
diff --git a/styles.css b/docs/css/styles.css
similarity index 100%
rename from styles.css
rename to docs/css/styles.css
diff --git a/examples/bootstrap-2.3.2/css/bootstrap-responsive.css b/docs/examples/bootstrap-2.3.2/css/bootstrap-responsive.css
similarity index 100%
rename from examples/bootstrap-2.3.2/css/bootstrap-responsive.css
rename to docs/examples/bootstrap-2.3.2/css/bootstrap-responsive.css
diff --git a/examples/bootstrap-2.3.2/css/bootstrap-responsive.min.css b/docs/examples/bootstrap-2.3.2/css/bootstrap-responsive.min.css
similarity index 100%
rename from examples/bootstrap-2.3.2/css/bootstrap-responsive.min.css
rename to docs/examples/bootstrap-2.3.2/css/bootstrap-responsive.min.css
diff --git a/examples/bootstrap-2.3.2/css/bootstrap.css b/docs/examples/bootstrap-2.3.2/css/bootstrap.css
similarity index 100%
rename from examples/bootstrap-2.3.2/css/bootstrap.css
rename to docs/examples/bootstrap-2.3.2/css/bootstrap.css
diff --git a/examples/bootstrap-2.3.2/css/bootstrap.min.css b/docs/examples/bootstrap-2.3.2/css/bootstrap.min.css
similarity index 100%
rename from examples/bootstrap-2.3.2/css/bootstrap.min.css
rename to docs/examples/bootstrap-2.3.2/css/bootstrap.min.css
diff --git a/examples/bootstrap-2.3.2/img/glyphicons-halflings-white.png b/docs/examples/bootstrap-2.3.2/img/glyphicons-halflings-white.png
similarity index 100%
rename from examples/bootstrap-2.3.2/img/glyphicons-halflings-white.png
rename to docs/examples/bootstrap-2.3.2/img/glyphicons-halflings-white.png
diff --git a/examples/bootstrap-2.3.2/img/glyphicons-halflings.png b/docs/examples/bootstrap-2.3.2/img/glyphicons-halflings.png
similarity index 100%
rename from examples/bootstrap-2.3.2/img/glyphicons-halflings.png
rename to docs/examples/bootstrap-2.3.2/img/glyphicons-halflings.png
diff --git a/examples/bootstrap-2.3.2/js/bootstrap.js b/docs/examples/bootstrap-2.3.2/js/bootstrap.js
similarity index 100%
rename from examples/bootstrap-2.3.2/js/bootstrap.js
rename to docs/examples/bootstrap-2.3.2/js/bootstrap.js
diff --git a/examples/bootstrap-2.3.2/js/bootstrap.min.js b/docs/examples/bootstrap-2.3.2/js/bootstrap.min.js
similarity index 100%
rename from examples/bootstrap-2.3.2/js/bootstrap.min.js
rename to docs/examples/bootstrap-2.3.2/js/bootstrap.min.js
diff --git a/examples/example-basic.html b/docs/examples/example-basic.html
similarity index 89%
rename from examples/example-basic.html
rename to docs/examples/example-basic.html
index f954edf..624c775 100644
--- a/examples/example-basic.html
+++ b/docs/examples/example-basic.html
@@ -5,12 +5,12 @@
Jquery-treegrid basic example
-
-
-
+
+
+
-
-
+
+
-
+
-
+
+
+
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
TreeGrid Bootstrap 3 examples
+
+
+
+ | Root node 1 |
+ Additional info |
+
+
+ | Node 1-1 |
+ Additional info |
+
+
+ | Node 1-2 |
+ Additional info |
+
+
+ | Node 1-2-1 |
+ Additional info |
+
+
+ | Root node 2 |
+ Additional info |
+
+
+ | Node 2-1 |
+ Additional info |
+
+
+ | Node 2-2 |
+ Additional info |
+
+
+ | Node 2-2-1 |
+ Additional info |
+
+
+
Code
+
+
<link href="bootstrap-3.0.0/css/bootstrap.css" rel="stylesheet">
+<link rel="stylesheet" href="../css/jquery.treegrid.css">
+
+<script type="text/javascript" src="../js/jquery.treegrid.js"></script>
+<script type="text/javascript" src="../js/jquery.treegrid.bootstrap3.js"></script>
+<script type="text/javascript">
+ $(document).ready(function() {
+ $('.tree').treegrid();
+ });
+</script>
+
Bootstrap TreeGrid example
+ table-bordered table-striped table-condensed
+ custom expander
+
+
+ | Root node 1 |
+ Additional info |
+
+
+ | Node 1-1 |
+ Additional info |
+
+
+ | Node 1-2 |
+ Additional info |
+
+
+ | Node 1-2-1 |
+ Additional info |
+
+
+ | Root node 2 |
+ Additional info |
+
+
+ | Node 2-1 |
+ Additional info |
+
+
+ | Node 2-2 |
+ Additional info |
+
+
+ | Node 2-2-1 |
+ Additional info |
+
+
+
+
Code
+
<link href="bootstrap-3.0.0/css/bootstrap.css" rel="stylesheet">
+<link rel="stylesheet" href="../css/jquery.treegrid.css">
+
+<script type="text/javascript" src="../js/jquery.treegrid.js"></script>
+<script type="text/javascript" src="../js/jquery.treegrid.bootstrap3.js"></script>
+<script type="text/javascript">
+ $(document).ready(function() {
+ $('.tree').treegrid({
+ expanderExpandedClass: 'glyphicon glyphicon-minus',
+ expanderCollapsedClass: 'glyphicon glyphicon-plus'
+ });
+ });
+</script>
+
+
+
+
+
+
+
+