add files to project
22
web/metronic/global/plugins/jstree/LICENSE-MIT
Normal file
|
@ -0,0 +1,22 @@
|
|||
Copyright (c) 2014 Ivan Bozhanov
|
||||
|
||||
Permission is hereby granted, free of charge, to any person
|
||||
obtaining a copy of this software and associated documentation
|
||||
files (the "Software"), to deal in the Software without
|
||||
restriction, including without limitation the rights to use,
|
||||
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the
|
||||
Software is furnished to do so, subject to the following
|
||||
conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
||||
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
||||
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||
OTHER DEALINGS IN THE SOFTWARE.
|
70
web/metronic/global/plugins/jstree/README.md
Normal file
|
@ -0,0 +1,70 @@
|
|||
# jstree
|
||||
|
||||
[jsTree][jstree] is a tree view for jQuery (depends on 1.9.1 or later).
|
||||
It is absolutely free (MIT licence) and supports all modern browsers and IE from version 8 up.
|
||||
jsTree can display trees by parsing HTML or JSON and supports AJAX, it is themeable and easy to configure and customize. Events are fired when the user interacts with the tree. Other notable features are inline editing, drag'n'drop support, fuzzy searching (with optional server side calls), tri-state checkbox support, configurable node types, AMD compatibility, easily extendable via plugins.
|
||||
[jstree]: http://www.jstree.com/
|
||||
|
||||
## Getting Started
|
||||
|
||||
Download or checkout the latest copy and include the scripts and styles in your web page. Then create an instance (in this case using the inline HTML).
|
||||
|
||||
```html
|
||||
<link rel="stylesheet" href="dist/themes/default/style.min.css" />
|
||||
<script src="dist/libs/jquery.js"></script>
|
||||
<script src="dist/jstree.min.js"></script>
|
||||
<script>
|
||||
$(function() {
|
||||
$('#container').jstree(/* optional config object here */);
|
||||
});
|
||||
</script>
|
||||
<div id="container">
|
||||
<ul>
|
||||
<li>Root node
|
||||
<ul>
|
||||
<li id="child_node">Child node</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
```
|
||||
|
||||
Listen for changes on the tree using events:
|
||||
|
||||
```html
|
||||
<script>
|
||||
$(function () {
|
||||
$('#container').on('changed.jstree', function (e, data) {
|
||||
console.log(data.selected);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
```
|
||||
|
||||
And interact with the tree:
|
||||
|
||||
```html
|
||||
<script>
|
||||
$(function () {
|
||||
$('#container').jstree(true).select_node('child_node');
|
||||
});
|
||||
</script>
|
||||
```
|
||||
|
||||
For a complete list of configuration options, events and available functions refer to the [documentation][docs] and [demos][demo].
|
||||
[docs]: http://jstree.com/docs
|
||||
[demo]: http://jstree.com/demo
|
||||
|
||||
## Contributing
|
||||
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [grunt](https://github.com/gruntjs/grunt).
|
||||
|
||||
_Please do NOT edit files in the "dist" subdirectory as they are generated via grunt. You'll find source code in the "src" subdirectory!_
|
||||
|
||||
If you want to you can always [donate a small amount][paypal] to help the development of jstree.
|
||||
[paypal]: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=paypal@vakata.com¤cy_code=USD&amount=&return=http://jstree.com/donation&item_name=Buy+me+a+coffee+for+jsTree
|
||||
|
||||
## License
|
||||
Copyright (c) 2014 Ivan Bozhanov (http://vakata.com)
|
||||
|
||||
Licensed under the [MIT license][mit].
|
||||
[mit]: http://www.opensource.org/licenses/mit-license.php
|
7781
web/metronic/global/plugins/jstree/dist/jstree.js
vendored
Normal file
5
web/metronic/global/plugins/jstree/dist/jstree.min.js
vendored
Normal file
BIN
web/metronic/global/plugins/jstree/dist/themes/default-dark/32px.png
vendored
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
web/metronic/global/plugins/jstree/dist/themes/default-dark/40px.png
vendored
Normal file
After Width: | Height: | Size: 5.6 KiB |
1105
web/metronic/global/plugins/jstree/dist/themes/default-dark/style.css
vendored
Normal file
1
web/metronic/global/plugins/jstree/dist/themes/default-dark/style.min.css
vendored
Normal file
BIN
web/metronic/global/plugins/jstree/dist/themes/default-dark/throbber.gif
vendored
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
web/metronic/global/plugins/jstree/dist/themes/default/32px.png
vendored
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
web/metronic/global/plugins/jstree/dist/themes/default/32px_line.png
vendored
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
web/metronic/global/plugins/jstree/dist/themes/default/32px_original.png
vendored
Normal file
After Width: | Height: | Size: 3 KiB |
BIN
web/metronic/global/plugins/jstree/dist/themes/default/40px.png
vendored
Normal file
After Width: | Height: | Size: 1.4 KiB |
1061
web/metronic/global/plugins/jstree/dist/themes/default/style.css
vendored
Normal file
1
web/metronic/global/plugins/jstree/dist/themes/default/style.min.css
vendored
Normal file
BIN
web/metronic/global/plugins/jstree/dist/themes/default/throbber.gif
vendored
Normal file
After Width: | Height: | Size: 1.7 KiB |
28
web/metronic/global/plugins/jstree/jstree.jquery.json
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"name": "jstree",
|
||||
"title": "jsTree",
|
||||
"description": "Tree view for jQuery",
|
||||
"version": "3.0.4",
|
||||
"homepage": "http://jstree.com",
|
||||
"keywords": [
|
||||
"ui",
|
||||
"tree",
|
||||
"jstree"
|
||||
],
|
||||
"author": {
|
||||
"name": "Ivan Bozhanov",
|
||||
"email": "jstree@jstree.com",
|
||||
"url": "http://vakata.com"
|
||||
},
|
||||
"licenses": [
|
||||
{
|
||||
"type": "MIT",
|
||||
"url": "https://github.com/vakata/jstree/blob/master/LICENSE-MIT"
|
||||
}
|
||||
],
|
||||
"bugs": "https://github.com/vakata/jstree/issues",
|
||||
"demo": "http://jstree.com/demo",
|
||||
"dependencies": {
|
||||
"jquery": ">=1.9.1"
|
||||
}
|
||||
}
|