patternfly-sass 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.bowerrc +1 -1
- data/.gitignore +2 -4
- data/.travis.yml +6 -3
- data/README.md +187 -26
- data/Rakefile +21 -17
- data/assets/stylesheets/patternfly/_variables.scss +206 -206
- data/bower.json +11 -12
- data/lib/patternfly-sass/version.rb +2 -2
- data/patternfly-sass.gemspec +1 -1
- data/{tests → spec}/capture.js +0 -0
- data/spec/compare_spec.rb +15 -5
- data/{tests/patternfly → spec/html}/accordions.html +0 -0
- data/{tests/patternfly → spec/html}/alerts.html +0 -0
- data/{tests/patternfly → spec/html}/badges.html +0 -0
- data/{tests/patternfly → spec/html}/basic.html +0 -0
- data/{tests/patternfly → spec/html}/blank-slate.html +0 -0
- data/{tests/patternfly → spec/html}/bootstrap-combobox.html +0 -0
- data/{tests/patternfly → spec/html}/bootstrap-select.html +0 -0
- data/{tests/patternfly → spec/html}/bootstrap-treeview-2.html +0 -0
- data/{tests/patternfly → spec/html}/bootstrap-treeview.html +0 -0
- data/{tests/patternfly → spec/html}/breadcrumbs.html +0 -0
- data/{tests/patternfly → spec/html}/buttons.html +0 -0
- data/{tests/patternfly → spec/html}/code.html +0 -0
- data/{tests/patternfly → spec/html}/dashboard.html +0 -0
- data/{tests/patternfly → spec/html}/datatables-columns.html +0 -0
- data/{tests/patternfly → spec/html}/datatables.html +0 -0
- data/{tests/patternfly → spec/html}/dist/css/patternfly.css +0 -0
- data/{tests/patternfly → spec/html}/dist/css/patternfly.min.css +0 -0
- data/{tests/patternfly → spec/html}/dist/css/styles.css +0 -0
- data/{tests/patternfly → spec/html}/dist/css/styles.min.css +0 -0
- data/{tests/patternfly → spec/html}/dropdowns.html +0 -0
- data/{tests/patternfly → spec/html}/form.html +0 -0
- data/{tests/patternfly → spec/html}/forms.html +0 -0
- data/{tests/patternfly → spec/html}/icons.html +0 -0
- data/{tests/patternfly → spec/html}/img/dashboard-1.png +0 -0
- data/{tests/patternfly → spec/html}/img/dashboard-2.png +0 -0
- data/{tests/patternfly → spec/html}/img/dashboard-3.png +0 -0
- data/{tests/patternfly → spec/html}/img/dashboard-4.png +0 -0
- data/{tests/patternfly → spec/html}/index.html +0 -0
- data/{tests/patternfly → spec/html}/infotip.html +0 -0
- data/{tests/patternfly → spec/html}/labels.html +0 -0
- data/{tests/patternfly → spec/html}/list-group.html +0 -0
- data/{tests/patternfly → spec/html}/login.html +0 -0
- data/{tests/index.html → spec/html/main.html} +0 -0
- data/{tests/patternfly → spec/html}/modals.html +0 -0
- data/{tests/patternfly → spec/html}/navbar.html +0 -0
- data/{tests/patternfly → spec/html}/pagination.html +0 -0
- data/{tests/patternfly → spec/html}/panels.html +0 -0
- data/{tests/patternfly → spec/html}/popovers.html +0 -0
- data/{tests/patternfly → spec/html}/progress-bars.html +0 -0
- data/{tests/patternfly → spec/html}/search.html +0 -0
- data/{tests/patternfly → spec/html}/spinner.html +0 -0
- data/{tests/patternfly → spec/html}/tab.html +0 -0
- data/{tests/patternfly → spec/html}/tables.html +0 -0
- data/{tests/patternfly → spec/html}/tabs.html +0 -0
- data/{tests/patternfly → spec/html}/tests.css +0 -0
- data/{tests/patternfly → spec/html}/tooltip.html +0 -0
- data/{tests/patternfly → spec/html}/typography-2.css +0 -0
- data/{tests/patternfly → spec/html}/typography-2.html +0 -0
- data/{tests/patternfly → spec/html}/typography.html +0 -0
- data/tasks/converter.rb +6 -9
- metadata +103 -626
- data/package.json +0 -28
- data/tests/components/bootstrap-combobox/.bower.json +0 -14
- data/tests/components/bootstrap-combobox/.gitignore +0 -1
- data/tests/components/bootstrap-combobox/README.md +0 -59
- data/tests/components/bootstrap-combobox/css/bootstrap-combobox.css +0 -42
- data/tests/components/bootstrap-combobox/js/bootstrap-combobox.js +0 -438
- data/tests/components/bootstrap-combobox/js/tests/index.html +0 -29
- data/tests/components/bootstrap-combobox/js/tests/unit/bootstrap-combobox.js +0 -323
- data/tests/components/bootstrap-combobox/js/tests/vendor/jquery.js +0 -9597
- data/tests/components/bootstrap-combobox/js/tests/vendor/qunit.css +0 -244
- data/tests/components/bootstrap-combobox/js/tests/vendor/qunit.js +0 -2152
- data/tests/components/bootstrap-combobox/less/combobox.less +0 -55
- data/tests/components/bootstrap-select/.bower.json +0 -38
- data/tests/components/bootstrap-select/CONTRIBUTING.md +0 -87
- data/tests/components/bootstrap-select/README.md +0 -61
- data/tests/components/bootstrap-select/bootstrap-select.css +0 -309
- data/tests/components/bootstrap-select/bootstrap-select.jquery.json +0 -29
- data/tests/components/bootstrap-select/bootstrap-select.js +0 -972
- data/tests/components/bootstrap-select/bootstrap-select.min.css +0 -7
- data/tests/components/bootstrap-select/bootstrap-select.min.js +0 -8
- data/tests/components/bootstrap-select/bower.json +0 -29
- data/tests/components/bootstrap-select/composer.json +0 -17
- data/tests/components/bootstrap-select/i18n/defaults-cs-CZ.js +0 -29
- data/tests/components/bootstrap-select/i18n/defaults-cz-CZ.min.js +0 -6
- data/tests/components/bootstrap-select/i18n/defaults-de_DE.js +0 -29
- data/tests/components/bootstrap-select/i18n/defaults-de_DE.min.js +0 -6
- data/tests/components/bootstrap-select/i18n/defaults-es-CL.js +0 -29
- data/tests/components/bootstrap-select/i18n/defaults-es-CL.min.js +0 -6
- data/tests/components/bootstrap-select/i18n/defaults-eu.js +0 -30
- data/tests/components/bootstrap-select/i18n/defaults-eu.min.js +0 -6
- data/tests/components/bootstrap-select/i18n/defaults-it_IT.js +0 -32
- data/tests/components/bootstrap-select/i18n/defaults-it_IT.min.js +0 -1
- data/tests/components/bootstrap-select/i18n/defaults-nl_NL.js +0 -32
- data/tests/components/bootstrap-select/i18n/defaults-nl_NL.min.js +0 -7
- data/tests/components/bootstrap-select/i18n/defaults-pl_PL.js +0 -29
- data/tests/components/bootstrap-select/i18n/defaults-pl_PL.min.js +0 -6
- data/tests/components/bootstrap-select/i18n/defaults-pt_BR.js +0 -33
- data/tests/components/bootstrap-select/i18n/defaults-pt_BR.min.js +0 -7
- data/tests/components/bootstrap-select/i18n/defaults-ru-RU.js +0 -31
- data/tests/components/bootstrap-select/i18n/defaults-ru_RU.min.js +0 -6
- data/tests/components/bootstrap-select/i18n/defaults-zh_CN.js +0 -30
- data/tests/components/bootstrap-select/i18n/defaults-zh_CN.min.js +0 -6
- data/tests/components/bootstrap-select/package.json +0 -31
- data/tests/components/bootstrap-select/test.html +0 -62
- data/tests/components/bootstrap-treeview/.bower.json +0 -38
- data/tests/components/bootstrap-treeview/Gruntfile.js +0 -62
- data/tests/components/bootstrap-treeview/LICENSE +0 -202
- data/tests/components/bootstrap-treeview/README.md +0 -289
- data/tests/components/bootstrap-treeview/app.js +0 -29
- data/tests/components/bootstrap-treeview/bower.json +0 -29
- data/tests/components/bootstrap-treeview/dist/bootstrap-treeview.min.css +0 -1
- data/tests/components/bootstrap-treeview/dist/bootstrap-treeview.min.js +0 -1
- data/tests/components/bootstrap-treeview/package.json +0 -18
- data/tests/components/bootstrap-treeview/public/css/bootstrap-treeview.css +0 -37
- data/tests/components/bootstrap-treeview/public/example-dom.html +0 -59
- data/tests/components/bootstrap-treeview/public/index.html +0 -333
- data/tests/components/bootstrap-treeview/public/js/bootstrap-treeview.js +0 -455
- data/tests/components/bootstrap-treeview/screenshot/default.PNG +0 -0
- data/tests/components/bootstrap-treeview/src/css/bootstrap-treeview.css +0 -37
- data/tests/components/bootstrap-treeview/src/js/bootstrap-treeview.js +0 -455
- data/tests/components/datatables-colreorder/.bower.json +0 -22
- data/tests/components/datatables-colreorder/License.txt +0 -20
- data/tests/components/datatables-colreorder/Readme.md +0 -39
- data/tests/components/datatables-colreorder/bower.json +0 -12
- data/tests/components/datatables-colreorder/css/dataTables.colReorder.css +0 -14
- data/tests/components/datatables-colreorder/examples/alt_insert.xml +0 -30
- data/tests/components/datatables-colreorder/examples/col_filter.xml +0 -38
- data/tests/components/datatables-colreorder/examples/colvis.xml +0 -26
- data/tests/components/datatables-colreorder/examples/fixedcolumns.xml +0 -43
- data/tests/components/datatables-colreorder/examples/fixedheader.xml +0 -27
- data/tests/components/datatables-colreorder/examples/index.xml +0 -19
- data/tests/components/datatables-colreorder/examples/jqueryui.xml +0 -27
- data/tests/components/datatables-colreorder/examples/new_init.xml +0 -23
- data/tests/components/datatables-colreorder/examples/predefined.xml +0 -30
- data/tests/components/datatables-colreorder/examples/realtime.xml +0 -30
- data/tests/components/datatables-colreorder/examples/reset.xml +0 -41
- data/tests/components/datatables-colreorder/examples/scrolling.xml +0 -27
- data/tests/components/datatables-colreorder/examples/server_side.xml +0 -38
- data/tests/components/datatables-colreorder/examples/simple.xml +0 -25
- data/tests/components/datatables-colreorder/examples/state_save.xml +0 -26
- data/tests/components/datatables-colreorder/images/.DS_Store +0 -0
- data/tests/components/datatables-colreorder/images/insert.png +0 -0
- data/tests/components/datatables-colreorder/js/dataTables.colReorder.js +0 -1372
- data/tests/components/datatables-colreorder/make.sh +0 -31
- data/tests/components/datatables-colvis/.bower.json +0 -22
- data/tests/components/datatables-colvis/License.txt +0 -20
- data/tests/components/datatables-colvis/README.md +0 -38
- data/tests/components/datatables-colvis/bower.json +0 -12
- data/tests/components/datatables-colvis/css/dataTables.colVis.css +0 -185
- data/tests/components/datatables-colvis/css/dataTables.colvis.jqueryui.css +0 -41
- data/tests/components/datatables-colvis/examples/.DS_Store +0 -0
- data/tests/components/datatables-colvis/examples/button_order.xml +0 -26
- data/tests/components/datatables-colvis/examples/exclude_columns.xml +0 -28
- data/tests/components/datatables-colvis/examples/group_columns.xml +0 -40
- data/tests/components/datatables-colvis/examples/index.xml +0 -18
- data/tests/components/datatables-colvis/examples/jqueryui.xml +0 -28
- data/tests/components/datatables-colvis/examples/mouseover.xml +0 -28
- data/tests/components/datatables-colvis/examples/new_init.xml +0 -26
- data/tests/components/datatables-colvis/examples/restore.xml +0 -33
- data/tests/components/datatables-colvis/examples/simple.xml +0 -25
- data/tests/components/datatables-colvis/examples/text.xml +0 -29
- data/tests/components/datatables-colvis/examples/title_callback.xml +0 -30
- data/tests/components/datatables-colvis/examples/two_tables.xml +0 -24
- data/tests/components/datatables-colvis/examples/two_tables_identical.xml +0 -35
- data/tests/components/datatables-colvis/js/dataTables.colVis.js +0 -1123
- data/tests/components/datatables-colvis/make.sh +0 -28
- data/tests/components/datatables/.bower.json +0 -42
- data/tests/components/datatables/Contributing.md +0 -18
- data/tests/components/datatables/Readme.md +0 -53
- data/tests/components/datatables/bower.json +0 -32
- data/tests/components/datatables/license.txt +0 -20
- data/tests/components/datatables/media/css/jquery.dataTables.css +0 -455
- data/tests/components/datatables/media/css/jquery.dataTables.min.css +0 -1
- data/tests/components/datatables/media/css/jquery.dataTables_themeroller.css +0 -416
- data/tests/components/datatables/media/images/Sorting icons.psd +0 -0
- data/tests/components/datatables/media/images/favicon.ico +0 -0
- data/tests/components/datatables/media/images/sort_asc.png +0 -0
- data/tests/components/datatables/media/images/sort_asc_disabled.png +0 -0
- data/tests/components/datatables/media/images/sort_both.png +0 -0
- data/tests/components/datatables/media/images/sort_desc.png +0 -0
- data/tests/components/datatables/media/images/sort_desc_disabled.png +0 -0
- data/tests/components/datatables/media/js/jquery.dataTables.js +0 -14951
- data/tests/components/datatables/media/js/jquery.dataTables.min.js +0 -160
- data/tests/components/datatables/media/js/jquery.js +0 -5
- data/tests/components/google-code-prettify/.bower.json +0 -26
- data/tests/components/google-code-prettify/CHANGES.html +0 -172
- data/tests/components/google-code-prettify/COPYING +0 -191
- data/tests/components/google-code-prettify/README-zh-Hans.html +0 -143
- data/tests/components/google-code-prettify/README.html +0 -233
- data/tests/components/google-code-prettify/README.md +0 -54
- data/tests/components/google-code-prettify/bin/prettify.min.css +0 -1
- data/tests/components/google-code-prettify/bin/prettify.min.js +0 -30
- data/tests/components/google-code-prettify/bin/run_prettify.min.js +0 -34
- data/tests/components/google-code-prettify/bower.json +0 -16
- data/tests/components/google-code-prettify/examples/quine.html +0 -55
- data/tests/components/google-code-prettify/src/lang-apollo.js +0 -51
- data/tests/components/google-code-prettify/src/lang-basic.js +0 -32
- data/tests/components/google-code-prettify/src/lang-clj.js +0 -64
- data/tests/components/google-code-prettify/src/lang-css.js +0 -159
- data/tests/components/google-code-prettify/src/lang-dart.js +0 -88
- data/tests/components/google-code-prettify/src/lang-erlang.js +0 -92
- data/tests/components/google-code-prettify/src/lang-go.js +0 -58
- data/tests/components/google-code-prettify/src/lang-hs.js +0 -101
- data/tests/components/google-code-prettify/src/lang-lisp.js +0 -94
- data/tests/components/google-code-prettify/src/lang-llvm.js +0 -61
- data/tests/components/google-code-prettify/src/lang-lua.js +0 -59
- data/tests/components/google-code-prettify/src/lang-matlab.js +0 -180
- data/tests/components/google-code-prettify/src/lang-ml.js +0 -56
- data/tests/components/google-code-prettify/src/lang-mumps.js +0 -139
- data/tests/components/google-code-prettify/src/lang-n.js +0 -65
- data/tests/components/google-code-prettify/src/lang-pascal.js +0 -32
- data/tests/components/google-code-prettify/src/lang-proto.js +0 -35
- data/tests/components/google-code-prettify/src/lang-r.js +0 -57
- data/tests/components/google-code-prettify/src/lang-rd.js +0 -47
- data/tests/components/google-code-prettify/src/lang-scala.js +0 -54
- data/tests/components/google-code-prettify/src/lang-sql.js +0 -58
- data/tests/components/google-code-prettify/src/lang-tcl.js +0 -62
- data/tests/components/google-code-prettify/src/lang-tex.js +0 -46
- data/tests/components/google-code-prettify/src/lang-vb.js +0 -66
- data/tests/components/google-code-prettify/src/lang-vhdl.js +0 -34
- data/tests/components/google-code-prettify/src/lang-wiki.js +0 -53
- data/tests/components/google-code-prettify/src/lang-xq.js +0 -67
- data/tests/components/google-code-prettify/src/lang-yaml.js +0 -27
- data/tests/components/google-code-prettify/src/prettify.css +0 -52
- data/tests/components/google-code-prettify/src/prettify.js +0 -1655
- data/tests/components/google-code-prettify/src/run_prettify.js +0 -1905
- data/tests/components/google-code-prettify/styles/demo.html +0 -61
- data/tests/components/google-code-prettify/styles/desert.css +0 -34
- data/tests/components/google-code-prettify/styles/doxy.css +0 -64
- data/tests/components/google-code-prettify/styles/index.html +0 -89
- data/tests/components/google-code-prettify/styles/sons-of-obsidian.css +0 -118
- data/tests/components/google-code-prettify/styles/sunburst.css +0 -51
- data/tests/components/jquery/.bower.json +0 -38
- data/tests/components/jquery/MIT-LICENSE.txt +0 -21
- data/tests/components/jquery/bower.json +0 -28
- data/tests/components/jquery/dist/jquery.js +0 -9210
- data/tests/components/jquery/dist/jquery.min.js +0 -5
- data/tests/components/jquery/dist/jquery.min.map +0 -1
- data/tests/components/jquery/src/ajax.js +0 -786
- data/tests/components/jquery/src/ajax/jsonp.js +0 -89
- data/tests/components/jquery/src/ajax/load.js +0 -75
- data/tests/components/jquery/src/ajax/parseJSON.js +0 -13
- data/tests/components/jquery/src/ajax/parseXML.js +0 -28
- data/tests/components/jquery/src/ajax/script.js +0 -64
- data/tests/components/jquery/src/ajax/var/nonce.js +0 -5
- data/tests/components/jquery/src/ajax/var/rquery.js +0 -3
- data/tests/components/jquery/src/ajax/xhr.js +0 -136
- data/tests/components/jquery/src/attributes.js +0 -11
- data/tests/components/jquery/src/attributes/attr.js +0 -141
- data/tests/components/jquery/src/attributes/classes.js +0 -158
- data/tests/components/jquery/src/attributes/prop.js +0 -94
- data/tests/components/jquery/src/attributes/support.js +0 -35
- data/tests/components/jquery/src/attributes/val.js +0 -161
- data/tests/components/jquery/src/callbacks.js +0 -205
- data/tests/components/jquery/src/core.js +0 -502
- data/tests/components/jquery/src/core/access.js +0 -60
- data/tests/components/jquery/src/core/init.js +0 -123
- data/tests/components/jquery/src/core/parseHTML.js +0 -39
- data/tests/components/jquery/src/core/ready.js +0 -97
- data/tests/components/jquery/src/core/var/rsingleTag.js +0 -4
- data/tests/components/jquery/src/css.js +0 -450
- data/tests/components/jquery/src/css/addGetHookIf.js +0 -22
- data/tests/components/jquery/src/css/curCSS.js +0 -57
- data/tests/components/jquery/src/css/defaultDisplay.js +0 -70
- data/tests/components/jquery/src/css/hiddenVisibleSelectors.js +0 -15
- data/tests/components/jquery/src/css/support.js +0 -96
- data/tests/components/jquery/src/css/swap.js +0 -28
- data/tests/components/jquery/src/css/var/cssExpand.js +0 -3
- data/tests/components/jquery/src/css/var/getStyles.js +0 -12
- data/tests/components/jquery/src/css/var/isHidden.js +0 -13
- data/tests/components/jquery/src/css/var/rmargin.js +0 -3
- data/tests/components/jquery/src/css/var/rnumnonpx.js +0 -5
- data/tests/components/jquery/src/data.js +0 -178
- data/tests/components/jquery/src/data/Data.js +0 -181
- data/tests/components/jquery/src/data/accepts.js +0 -20
- data/tests/components/jquery/src/data/var/data_priv.js +0 -5
- data/tests/components/jquery/src/data/var/data_user.js +0 -5
- data/tests/components/jquery/src/deferred.js +0 -149
- data/tests/components/jquery/src/deprecated.js +0 -13
- data/tests/components/jquery/src/dimensions.js +0 -50
- data/tests/components/jquery/src/effects.js +0 -648
- data/tests/components/jquery/src/effects/Tween.js +0 -114
- data/tests/components/jquery/src/effects/animatedSelector.js +0 -13
- data/tests/components/jquery/src/event.js +0 -868
- data/tests/components/jquery/src/event/ajax.js +0 -13
- data/tests/components/jquery/src/event/alias.js +0 -39
- data/tests/components/jquery/src/event/support.js +0 -9
- data/tests/components/jquery/src/exports/amd.js +0 -24
- data/tests/components/jquery/src/exports/global.js +0 -32
- data/tests/components/jquery/src/intro.js +0 -44
- data/tests/components/jquery/src/jquery.js +0 -37
- data/tests/components/jquery/src/manipulation.js +0 -580
- data/tests/components/jquery/src/manipulation/_evalUrl.js +0 -18
- data/tests/components/jquery/src/manipulation/support.js +0 -32
- data/tests/components/jquery/src/manipulation/var/rcheckableType.js +0 -3
- data/tests/components/jquery/src/offset.js +0 -207
- data/tests/components/jquery/src/outro.js +0 -1
- data/tests/components/jquery/src/queue.js +0 -142
- data/tests/components/jquery/src/queue/delay.js +0 -22
- data/tests/components/jquery/src/selector-native.js +0 -172
- data/tests/components/jquery/src/selector-sizzle.js +0 -14
- data/tests/components/jquery/src/selector.js +0 -1
- data/tests/components/jquery/src/serialize.js +0 -111
- data/tests/components/jquery/src/sizzle/dist/sizzle.js +0 -2067
- data/tests/components/jquery/src/sizzle/dist/sizzle.min.js +0 -3
- data/tests/components/jquery/src/sizzle/dist/sizzle.min.map +0 -1
- data/tests/components/jquery/src/traversing.js +0 -199
- data/tests/components/jquery/src/traversing/findFilter.js +0 -100
- data/tests/components/jquery/src/traversing/var/rneedsContext.js +0 -6
- data/tests/components/jquery/src/var/arr.js +0 -3
- data/tests/components/jquery/src/var/class2type.js +0 -4
- data/tests/components/jquery/src/var/concat.js +0 -5
- data/tests/components/jquery/src/var/hasOwn.js +0 -5
- data/tests/components/jquery/src/var/indexOf.js +0 -5
- data/tests/components/jquery/src/var/pnum.js +0 -3
- data/tests/components/jquery/src/var/push.js +0 -5
- data/tests/components/jquery/src/var/rnotwhite.js +0 -3
- data/tests/components/jquery/src/var/slice.js +0 -5
- data/tests/components/jquery/src/var/strundefined.js +0 -3
- data/tests/components/jquery/src/var/support.js +0 -4
- data/tests/components/jquery/src/var/toString.js +0 -5
- data/tests/components/jquery/src/wrap.js +0 -79
@@ -1,29 +0,0 @@
|
|
1
|
-
|
2
|
-
/**
|
3
|
-
* Module dependencies.
|
4
|
-
*/
|
5
|
-
|
6
|
-
var express = require('express');
|
7
|
-
var http = require('http');
|
8
|
-
var path = require('path');
|
9
|
-
|
10
|
-
var app = express();
|
11
|
-
|
12
|
-
// all environments
|
13
|
-
app.set('port', process.env.PORT || 3000);
|
14
|
-
app.use(express.favicon());
|
15
|
-
app.use(express.logger('dev'));
|
16
|
-
app.use(express.json());
|
17
|
-
app.use(express.urlencoded());
|
18
|
-
app.use(express.methodOverride());
|
19
|
-
app.use(express.static(path.join(__dirname, '/public')));
|
20
|
-
app.use(express.static(path.join(__dirname, '/tests')));
|
21
|
-
|
22
|
-
// development only
|
23
|
-
if ('development' == app.get('env')) {
|
24
|
-
app.use(express.errorHandler());
|
25
|
-
}
|
26
|
-
|
27
|
-
http.createServer(app).listen(app.get('port'), function(){
|
28
|
-
console.log('Express server listening on port ' + app.get('port'));
|
29
|
-
});
|
@@ -1,29 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"name": "bootstrap-treeview",
|
3
|
-
"version": "1.0.2",
|
4
|
-
"homepage": "https://github.com/jonmiles/bootstrap-treeview",
|
5
|
-
"description": "Tree View for Twitter Bootstrap",
|
6
|
-
"main": [
|
7
|
-
"dist/bootstrap-treeview.min.js",
|
8
|
-
"dist/bootstrap-treeview.min.css"
|
9
|
-
],
|
10
|
-
"keywords": [
|
11
|
-
"Twitter",
|
12
|
-
"Bootstrap",
|
13
|
-
"Tree",
|
14
|
-
"TreeView",
|
15
|
-
"Navigation"
|
16
|
-
],
|
17
|
-
"ignore": [
|
18
|
-
"**/.*",
|
19
|
-
"node_modules",
|
20
|
-
"bower_components",
|
21
|
-
"test",
|
22
|
-
"tests"
|
23
|
-
],
|
24
|
-
"dependencies": {
|
25
|
-
"bootstrap": ">= 3.0.0",
|
26
|
-
"jquery": ">= 1.9.0"
|
27
|
-
},
|
28
|
-
"devDependencies": {}
|
29
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
.treeview .list-group-item{cursor:pointer}.treeview span.indent{margin-left:10px;margin-right:10px}.treeview span.expand-collapse{width:1rem;height:1rem}.treeview span.icon{margin-left:10px;margin-right:5px}
|
@@ -1 +0,0 @@
|
|
1
|
-
!function(a,b,c,d){"use strict";var e="treeview",f=function(b,c){this.$element=a(b),this._element=b,this._elementId=this._element.id,this._styleId=this._elementId+"-style",this.tree=[],this.nodes=[],this.selectedNode={},this._init(c)};f.defaults={injectStyle:!0,levels:2,expandIcon:"glyphicon glyphicon-plus",collapseIcon:"glyphicon glyphicon-minus",emptyIcon:"glyphicon",nodeIcon:"glyphicon glyphicon-stop",color:d,backColor:d,borderColor:d,onhoverColor:"#F5F5F5",selectedColor:"#FFFFFF",selectedBackColor:"#428bca",enableLinks:!1,highlightSelected:!0,showBorder:!0,showTags:!1,onNodeSelected:d},f.prototype={remove:function(){this._destroy(),a.removeData(this,"plugin_"+e),a("#"+this._styleId).remove()},_destroy:function(){this.initialized&&(this.$wrapper.remove(),this.$wrapper=null,this._unsubscribeEvents()),this.initialized=!1},_init:function(b){b.data&&("string"==typeof b.data&&(b.data=a.parseJSON(b.data)),this.tree=a.extend(!0,[],b.data),delete b.data),this.options=a.extend({},f.defaults,b),this._setInitialLevels(this.tree,0),this._destroy(),this._subscribeEvents(),this._render()},_unsubscribeEvents:function(){this.$element.off("click"),"function"==typeof this.options.onNodeSelected&&this.$element.off("nodeSelected")},_subscribeEvents:function(){this._unsubscribeEvents(),this.$element.on("click",a.proxy(this._clickHandler,this)),"function"==typeof this.options.onNodeSelected&&this.$element.on("nodeSelected",this.options.onNodeSelected)},_clickHandler:function(b){this.options.enableLinks||b.preventDefault();var c=a(b.target),d=c.attr("class")?c.attr("class").split(" "):[],e=this._findNode(c);-1!=d.indexOf("click-expand")||-1!=d.indexOf("click-collapse")?(this._toggleNodes(e),this._render()):e&&(this._isSelectable(e)?this._setSelectedNode(e):(this._toggleNodes(e),this._render()))},_findNode:function(a){var b=a.closest("li.list-group-item").attr("data-nodeid"),c=this.nodes[b];return c||console.log("Error: node does not exist"),c},_triggerNodeSelectedEvent:function(b){this.$element.trigger("nodeSelected",[a.extend(!0,{},b)])},_setSelectedNode:function(a){a&&(a===this.selectedNode?this.selectedNode={}:this._triggerNodeSelectedEvent(this.selectedNode=a),this._render())},_setInitialLevels:function(b,c){if(b){c+=1;var e=this;a.each(b,function(a,b){c>=e.options.levels&&e._toggleNodes(b);var f=b.nodes?b.nodes:b._nodes?b._nodes:d;return f?e._setInitialLevels(f,c):void 0})}},_toggleNodes:function(a){(a.nodes||a._nodes)&&(a.nodes?(a._nodes=a.nodes,delete a.nodes):(a.nodes=a._nodes,delete a._nodes))},_isSelectable:function(a){return a.selectable!==!1},_render:function(){var b=this;b.initialized||(b.$element.addClass(e),b.$wrapper=a(b._template.list),b._injectStyle(),b.initialized=!0),b.$element.empty().append(b.$wrapper.empty()),b.nodes=[],b._buildTree(b.tree,0)},_buildTree:function(b,c){if(b){c+=1;var d=this;a.each(b,function(b,e){e.nodeId=d.nodes.length,d.nodes.push(e);for(var f=a(d._template.item).addClass("node-"+d._elementId).addClass(e===d.selectedNode?"node-selected":"").attr("data-nodeid",e.nodeId).attr("style",d._buildStyleOverride(e)),g=0;c-1>g;g++)f.append(d._template.indent);return f.append(e._nodes?a(d._template.expandCollapseIcon).addClass("click-expand").addClass(d.options.expandIcon):e.nodes?a(d._template.expandCollapseIcon).addClass("click-collapse").addClass(d.options.collapseIcon):a(d._template.expandCollapseIcon).addClass(d.options.emptyIcon)),f.append(a(d._template.icon).addClass(e.icon?e.icon:d.options.nodeIcon)),f.append(d.options.enableLinks?a(d._template.link).attr("href",e.href).append(e.text):e.text),d.options.showTags&&e.tags&&a.each(e.tags,function(b,c){f.append(a(d._template.badge).append(c))}),d.$wrapper.append(f),e.nodes?d._buildTree(e.nodes,c):void 0})}},_buildStyleOverride:function(a){var b="";return this.options.highlightSelected&&a===this.selectedNode?b+="color:"+this.options.selectedColor+";":a.color&&(b+="color:"+a.color+";"),this.options.highlightSelected&&a===this.selectedNode?b+="background-color:"+this.options.selectedBackColor+";":a.backColor&&(b+="background-color:"+a.backColor+";"),b},_injectStyle:function(){this.options.injectStyle&&!c.getElementById(this._styleId)&&a('<style type="text/css" id="'+this._styleId+'"> '+this._buildStyle()+" </style>").appendTo("head")},_buildStyle:function(){var a=".node-"+this._elementId+"{";return this.options.color&&(a+="color:"+this.options.color+";"),this.options.backColor&&(a+="background-color:"+this.options.backColor+";"),this.options.showBorder?this.options.borderColor&&(a+="border:1px solid "+this.options.borderColor+";"):a+="border:none;",a+="}",this.options.onhoverColor&&(a+=".node-"+this._elementId+":hover{background-color:"+this.options.onhoverColor+";}"),this._css+a},_template:{list:'<ul class="list-group"></ul>',item:'<li class="list-group-item"></li>',indent:'<span class="indent"></span>',expandCollapseIcon:'<span class="expand-collapse"></span>',icon:'<span class="icon"></span>',link:'<a href="#" style="color:inherit;"></a>',badge:'<span class="badge"></span>'},_css:".treeview .list-group-item{cursor:pointer}.treeview span.indent{margin-left:10px;margin-right:10px}.treeview span.expand-collapse{width:1rem;height:1rem}.treeview span.icon{margin-left:10px;margin-right:5px}"};var g=function(a){b.console&&b.console.error(a)};a.fn[e]=function(b,c){return this.each(function(){var d=a.data(this,"plugin_"+e);"string"==typeof b?d?a.isFunction(d[b])&&"_"!==b.charAt(0)?("string"==typeof c&&(c=[c]),d[b].apply(d,c)):g("No such method : "+b):g("Not initialized, can not call method : "+b):d?d._init(b):a.data(this,"plugin_"+e,new f(this,a.extend(!0,{},b)))})}}(jQuery,window,document);
|
@@ -1,18 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"name": "bootstrap-treeview",
|
3
|
-
"version": "1.0.0",
|
4
|
-
"devDependencies": {
|
5
|
-
"grunt": "~0.4.1",
|
6
|
-
"grunt-contrib-uglify": "~0.2.4",
|
7
|
-
"grunt-contrib-cssmin": "~0.4.0",
|
8
|
-
"grunt-contrib-qunit": ">=0.2.1",
|
9
|
-
"grunt-contrib-watch": ">=0.3.1",
|
10
|
-
"grunt-contrib-copy": "~0.4.1",
|
11
|
-
"bower": "~1.2.7"
|
12
|
-
},
|
13
|
-
"dependencies": {
|
14
|
-
"phantomjs": "~1.9.2-2",
|
15
|
-
"express": "~3.4.2",
|
16
|
-
"ejs": "~0.8.5"
|
17
|
-
}
|
18
|
-
}
|
@@ -1,37 +0,0 @@
|
|
1
|
-
/* =========================================================
|
2
|
-
* bootstrap-treeview.css v1.0.2
|
3
|
-
* =========================================================
|
4
|
-
* Copyright 2013 Jonathan Miles
|
5
|
-
* Project URL : http://www.jondmiles.com/bootstrap-treeview
|
6
|
-
*
|
7
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
8
|
-
* you may not use this file except in compliance with the License.
|
9
|
-
* You may obtain a copy of the License at
|
10
|
-
*
|
11
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
12
|
-
*
|
13
|
-
* Unless required by applicable law or agreed to in writing, software
|
14
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
15
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
16
|
-
* See the License for the specific language governing permissions and
|
17
|
-
* limitations under the License.
|
18
|
-
* ========================================================= */
|
19
|
-
|
20
|
-
.treeview .list-group-item {
|
21
|
-
cursor: pointer;
|
22
|
-
}
|
23
|
-
|
24
|
-
.treeview span.indent {
|
25
|
-
margin-left: 10px;
|
26
|
-
margin-right: 10px;
|
27
|
-
}
|
28
|
-
|
29
|
-
.treeview span.expand-collapse {
|
30
|
-
width: 1rem;
|
31
|
-
height: 1rem;
|
32
|
-
}
|
33
|
-
|
34
|
-
.treeview span.icon {
|
35
|
-
margin-left: 10px;
|
36
|
-
margin-right: 5px;
|
37
|
-
}
|
@@ -1,59 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>Bootstrap Tree View</title>
|
5
|
-
<link href="./bower_components/bootstrap/dist/css/bootstrap.css" rel="stylesheet">
|
6
|
-
<link href="./css/bootstrap-treeview.css" rel="stylesheet">
|
7
|
-
</head>
|
8
|
-
<body>
|
9
|
-
<div class="container">
|
10
|
-
<h1>Bootstrap Tree View - DOM Tree</h1>
|
11
|
-
<br/>
|
12
|
-
<div class="row">
|
13
|
-
<div class="col-sm-12">
|
14
|
-
<label for="treeview"></label>
|
15
|
-
<div id="treeview"/>
|
16
|
-
</div>
|
17
|
-
</div>
|
18
|
-
</div>
|
19
|
-
<script src="./bower_components/jquery/dist/jquery.js"></script>
|
20
|
-
<script src="./js/bootstrap-treeview.js"></script>
|
21
|
-
<script type="text/javascript">
|
22
|
-
|
23
|
-
function buildDomTree() {
|
24
|
-
|
25
|
-
var data = [];
|
26
|
-
|
27
|
-
function walk(nodes, data) {
|
28
|
-
if (!nodes) { return; }
|
29
|
-
$.each(nodes, function (id, node) {
|
30
|
-
var obj = {
|
31
|
-
id: id,
|
32
|
-
text: node.nodeName + " - " + (node.innerText ? node.innerText : ''),
|
33
|
-
tags: [node.childElementCount > 0 ? node.childElementCount + ' child elements' : '']
|
34
|
-
};
|
35
|
-
if (node.childElementCount > 0) {
|
36
|
-
obj.nodes = [];
|
37
|
-
walk(node.children, obj.nodes);
|
38
|
-
}
|
39
|
-
data.push(obj);
|
40
|
-
});
|
41
|
-
}
|
42
|
-
|
43
|
-
walk($('html')[0].children, data);
|
44
|
-
return data;
|
45
|
-
}
|
46
|
-
|
47
|
-
$(function() {
|
48
|
-
|
49
|
-
var options = {
|
50
|
-
bootstrap2: false,
|
51
|
-
showTags: true,
|
52
|
-
levels: 5,
|
53
|
-
data: buildDomTree()
|
54
|
-
};
|
55
|
-
|
56
|
-
$('#treeview').treeview(options);
|
57
|
-
});
|
58
|
-
</script>
|
59
|
-
</body>
|
@@ -1,333 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>Bootstrap Tree View</title>
|
5
|
-
<link href="./bower_components/bootstrap/dist/css/bootstrap.css" rel="stylesheet">
|
6
|
-
<!-- <link href="./css/bootstrap-treeview.css" rel="stylesheet"> -->
|
7
|
-
</head>
|
8
|
-
<body>
|
9
|
-
<div class="container">
|
10
|
-
<h1>Bootstrap Tree View</h1>
|
11
|
-
<br/>
|
12
|
-
<div class="row">
|
13
|
-
<div class="col-sm-4">
|
14
|
-
<h2>Default</h2>
|
15
|
-
<div id="treeview1" class=""></div>
|
16
|
-
</div>
|
17
|
-
<div class="col-sm-4">
|
18
|
-
<h2>Collapsed</h2>
|
19
|
-
<div id="treeview2" class=""></div>
|
20
|
-
</div>
|
21
|
-
<div class="col-sm-4">
|
22
|
-
<h2>Expanded</h2>
|
23
|
-
<div id="treeview3" class=""></div>
|
24
|
-
</div>
|
25
|
-
</div>
|
26
|
-
<div class="row">
|
27
|
-
<div class="col-sm-4">
|
28
|
-
<h2>Blue Theme</h2>
|
29
|
-
<div id="treeview4" class=""></div>
|
30
|
-
</div>
|
31
|
-
<div class="col-sm-4">
|
32
|
-
<h2>Custom Icons</h2>
|
33
|
-
<div id="treeview5" class=""></div>
|
34
|
-
</div>
|
35
|
-
<div class="col-sm-4">
|
36
|
-
<h2>Tags as Badges</h2>
|
37
|
-
<div id="treeview6" class=""></div>
|
38
|
-
</div>
|
39
|
-
</div>
|
40
|
-
<div class="row">
|
41
|
-
<div class="col-sm-4">
|
42
|
-
<h2>Without Border</h2>
|
43
|
-
<div id="treeview7" class=""></div>
|
44
|
-
</div>
|
45
|
-
<div class="col-sm-4">
|
46
|
-
<h2>Colourful</h2>
|
47
|
-
<div id="treeview8" class=""></div>
|
48
|
-
</div>
|
49
|
-
<div class="col-sm-4">
|
50
|
-
<h2>Node Overrides</h2>
|
51
|
-
<div id="treeview9" class=""></div>
|
52
|
-
</div>
|
53
|
-
</div>
|
54
|
-
<div class="row">
|
55
|
-
<div class="col-sm-4">
|
56
|
-
<h2>Link enabled, or</h2>
|
57
|
-
<div id="treeview10" class=""></div>
|
58
|
-
</div>
|
59
|
-
<div class="col-sm-4">
|
60
|
-
<h2>Events</h2>
|
61
|
-
<div id="treeview11" class=""></div>
|
62
|
-
</div>
|
63
|
-
<div class="col-sm-4">
|
64
|
-
<h2>Output</h2>
|
65
|
-
<div id="event_output"></div>
|
66
|
-
</div>
|
67
|
-
</div>
|
68
|
-
<div class="row">
|
69
|
-
<div class="col-sm-4">
|
70
|
-
<h2>JSON Data</h2>
|
71
|
-
<div id="treeview12" class=""></div>
|
72
|
-
</div>
|
73
|
-
<div class="col-sm-4">
|
74
|
-
<h2></h2>
|
75
|
-
<div id="treeview13" class=""></div>
|
76
|
-
</div>
|
77
|
-
<div class="col-sm-4">
|
78
|
-
<h2></h2>
|
79
|
-
<div id="treeview14"></div>
|
80
|
-
</div>
|
81
|
-
</div>
|
82
|
-
<br/>
|
83
|
-
<br/>
|
84
|
-
<br/>
|
85
|
-
<br/>
|
86
|
-
</div>
|
87
|
-
<script src="./bower_components/jquery/dist/jquery.js"></script>
|
88
|
-
<script src="./js/bootstrap-treeview.js"></script>
|
89
|
-
<script type="text/javascript">
|
90
|
-
|
91
|
-
$(function() {
|
92
|
-
|
93
|
-
var defaultData = [
|
94
|
-
{
|
95
|
-
text: 'Parent 1',
|
96
|
-
href: '#parent1',
|
97
|
-
tags: ['4'],
|
98
|
-
nodes: [
|
99
|
-
{
|
100
|
-
text: 'Child 1',
|
101
|
-
href: '#child1',
|
102
|
-
tags: ['2'],
|
103
|
-
nodes: [
|
104
|
-
{
|
105
|
-
text: 'Grandchild 1',
|
106
|
-
href: '#grandchild1',
|
107
|
-
tags: ['0']
|
108
|
-
},
|
109
|
-
{
|
110
|
-
text: 'Grandchild 2',
|
111
|
-
href: '#grandchild2',
|
112
|
-
tags: ['0']
|
113
|
-
}
|
114
|
-
]
|
115
|
-
},
|
116
|
-
{
|
117
|
-
text: 'Child 2',
|
118
|
-
href: '#child2',
|
119
|
-
tags: ['0']
|
120
|
-
}
|
121
|
-
]
|
122
|
-
},
|
123
|
-
{
|
124
|
-
text: 'Parent 2',
|
125
|
-
href: '#parent2',
|
126
|
-
tags: ['0']
|
127
|
-
},
|
128
|
-
{
|
129
|
-
text: 'Parent 3',
|
130
|
-
href: '#parent3',
|
131
|
-
tags: ['0']
|
132
|
-
},
|
133
|
-
{
|
134
|
-
text: 'Parent 4',
|
135
|
-
href: '#parent4',
|
136
|
-
tags: ['0']
|
137
|
-
},
|
138
|
-
{
|
139
|
-
text: 'Parent 5',
|
140
|
-
href: '#parent5' ,
|
141
|
-
tags: ['0']
|
142
|
-
}
|
143
|
-
];
|
144
|
-
|
145
|
-
var alternateData = [
|
146
|
-
{
|
147
|
-
text: 'Parent 1',
|
148
|
-
tags: ['2'],
|
149
|
-
nodes: [
|
150
|
-
{
|
151
|
-
text: 'Child 1',
|
152
|
-
tags: ['3'],
|
153
|
-
nodes: [
|
154
|
-
{
|
155
|
-
text: 'Grandchild 1',
|
156
|
-
tags: ['6']
|
157
|
-
},
|
158
|
-
{
|
159
|
-
text: 'Grandchild 2',
|
160
|
-
tags: ['3']
|
161
|
-
}
|
162
|
-
]
|
163
|
-
},
|
164
|
-
{
|
165
|
-
text: 'Child 2',
|
166
|
-
tags: ['3']
|
167
|
-
}
|
168
|
-
]
|
169
|
-
},
|
170
|
-
{
|
171
|
-
text: 'Parent 2',
|
172
|
-
tags: ['7']
|
173
|
-
},
|
174
|
-
{
|
175
|
-
text: 'Parent 3',
|
176
|
-
icon: 'glyphicon glyphicon-earphone',
|
177
|
-
href: '#demo',
|
178
|
-
tags: ['11']
|
179
|
-
},
|
180
|
-
{
|
181
|
-
text: 'Parent 4',
|
182
|
-
icon: 'glyphicon glyphicon-cloud-download',
|
183
|
-
href: '/demo.html',
|
184
|
-
tags: ['19'],
|
185
|
-
selected: true
|
186
|
-
},
|
187
|
-
{
|
188
|
-
text: 'Parent 5',
|
189
|
-
icon: 'glyphicon glyphicon-certificate',
|
190
|
-
color: 'pink',
|
191
|
-
backColor: 'red',
|
192
|
-
href: 'http://www.tesco.com',
|
193
|
-
tags: ['available','0']
|
194
|
-
}
|
195
|
-
];
|
196
|
-
|
197
|
-
var json = '[' +
|
198
|
-
'{' +
|
199
|
-
'"text": "Parent 1",' +
|
200
|
-
'"nodes": [' +
|
201
|
-
'{' +
|
202
|
-
'"text": "Child 1",' +
|
203
|
-
'"nodes": [' +
|
204
|
-
'{' +
|
205
|
-
'"text": "Grandchild 1"' +
|
206
|
-
'},' +
|
207
|
-
'{' +
|
208
|
-
'"text": "Grandchild 2"' +
|
209
|
-
'}' +
|
210
|
-
']' +
|
211
|
-
'},' +
|
212
|
-
'{' +
|
213
|
-
'"text": "Child 2"' +
|
214
|
-
'}' +
|
215
|
-
']' +
|
216
|
-
'},' +
|
217
|
-
'{' +
|
218
|
-
'"text": "Parent 2"' +
|
219
|
-
'},' +
|
220
|
-
'{' +
|
221
|
-
'"text": "Parent 3"' +
|
222
|
-
'},' +
|
223
|
-
'{' +
|
224
|
-
'"text": "Parent 4"' +
|
225
|
-
'},' +
|
226
|
-
'{' +
|
227
|
-
'"text": "Parent 5"' +
|
228
|
-
'}' +
|
229
|
-
']';
|
230
|
-
|
231
|
-
|
232
|
-
$('#treeview1').treeview({
|
233
|
-
data: defaultData
|
234
|
-
});
|
235
|
-
|
236
|
-
$('#treeview2').treeview({
|
237
|
-
levels: 1,
|
238
|
-
data: defaultData
|
239
|
-
});
|
240
|
-
|
241
|
-
$('#treeview3').treeview({
|
242
|
-
levels: 99,
|
243
|
-
data: defaultData
|
244
|
-
});
|
245
|
-
|
246
|
-
$('#treeview4').treeview({
|
247
|
-
|
248
|
-
color: "#428bca",
|
249
|
-
data: defaultData
|
250
|
-
});
|
251
|
-
|
252
|
-
$('#treeview5').treeview({
|
253
|
-
color: "#428bca",
|
254
|
-
expandIcon: 'glyphicon glyphicon-chevron-right',
|
255
|
-
collapseIcon: 'glyphicon glyphicon-chevron-down',
|
256
|
-
nodeIcon: 'glyphicon glyphicon-bookmark',
|
257
|
-
data: defaultData
|
258
|
-
});
|
259
|
-
|
260
|
-
$('#treeview6').treeview({
|
261
|
-
color: "#428bca",
|
262
|
-
expandIcon: "glyphicon glyphicon-stop",
|
263
|
-
collapseIcon: "glyphicon glyphicon-unchecked",
|
264
|
-
nodeIcon: "glyphicon glyphicon-user",
|
265
|
-
showTags: true,
|
266
|
-
data: defaultData
|
267
|
-
});
|
268
|
-
|
269
|
-
$('#treeview7').treeview({
|
270
|
-
color: "#428bca",
|
271
|
-
showBorder: false,
|
272
|
-
data: defaultData
|
273
|
-
});
|
274
|
-
|
275
|
-
$('#treeview8').treeview({
|
276
|
-
expandIcon: "glyphicon glyphicon-stop",
|
277
|
-
collapseIcon: "glyphicon glyphicon-unchecked",
|
278
|
-
nodeIcon: "glyphicon glyphicon-user",
|
279
|
-
color: "yellow",
|
280
|
-
backColor: "purple",
|
281
|
-
onhoverColor: "orange",
|
282
|
-
borderColor: "red",
|
283
|
-
showBorder: false,
|
284
|
-
showTags: true,
|
285
|
-
highlightSelected: true,
|
286
|
-
selectedColor: "yellow",
|
287
|
-
selectedBackColor: "darkorange",
|
288
|
-
data: defaultData
|
289
|
-
});
|
290
|
-
|
291
|
-
$('#treeview9').treeview({
|
292
|
-
expandIcon: "glyphicon glyphicon-stop",
|
293
|
-
collapseIcon: "glyphicon glyphicon-unchecked",
|
294
|
-
nodeIcon: "glyphicon glyphicon-user",
|
295
|
-
color: "yellow",
|
296
|
-
backColor: "purple",
|
297
|
-
onhoverColor: "orange",
|
298
|
-
borderColor: "red",
|
299
|
-
showBorder: false,
|
300
|
-
showTags: true,
|
301
|
-
highlightSelected: true,
|
302
|
-
selectedColor: "yellow",
|
303
|
-
selectedBackColor: "darkorange",
|
304
|
-
data: alternateData
|
305
|
-
});
|
306
|
-
|
307
|
-
$('#treeview10').treeview({
|
308
|
-
color: "#428bca",
|
309
|
-
enableLinks: true,
|
310
|
-
data: defaultData
|
311
|
-
});
|
312
|
-
|
313
|
-
$('#treeview11').treeview({
|
314
|
-
color: "#428bca",
|
315
|
-
data: defaultData,
|
316
|
-
onNodeSelected: function(event, node) {
|
317
|
-
$('#event_output').prepend('<p>You clicked ' + node.text + '</p>');
|
318
|
-
}
|
319
|
-
});
|
320
|
-
|
321
|
-
// $('#treeview11').on('nodeSelected', function (event, node) {
|
322
|
-
// $('#event_output').prepend('<p>You clicked ' + node.text + '</p>');
|
323
|
-
// });
|
324
|
-
|
325
|
-
|
326
|
-
$('#treeview12').treeview({
|
327
|
-
data: json
|
328
|
-
});
|
329
|
-
|
330
|
-
});
|
331
|
-
</script>
|
332
|
-
</body>
|
333
|
-
</html>
|