jqtree 1.8.2 → 1.8.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bower.json +1 -1
- package/package.json +31 -29
- package/src/dragAndDropHandler/generateHitAreas.ts +47 -43
- package/src/nodeElement/ghostDropHint.ts +3 -37
- package/src/nodeElement/index.ts +1 -1
- package/src/saveStateHandler.ts +43 -59
- package/src/version.ts +1 -1
- package/tree.jquery.debug.js +69 -106
- package/tree.jquery.debug.js.map +1 -1
- package/tree.jquery.js +2 -2
- package/tree.jquery.js.map +1 -1
- package/.editorconfig +0 -12
- package/.eslintrc +0 -48
- package/.github/workflows/ci.yml +0 -68
- package/.github/workflows/codeql-analysis.yml +0 -32
- package/.github/workflows/size.yml +0 -24
- package/.github/workflows/static.yml +0 -57
- package/.prettier +0 -3
- package/config/.postcssrc +0 -6
- package/config/babel.config.json +0 -11
- package/config/babel.coverage.config.json +0 -4
- package/config/jest.config.js +0 -24
- package/config/jest.polyfills.js +0 -14
- package/config/playwright.config.js +0 -18
- package/config/production +0 -6
- package/config/rollup.config.mjs +0 -71
- package/css/jqtree.postcss +0 -193
- package/devserver/devserver.js +0 -7
- package/devserver/devserver_scroll.js +0 -8
- package/devserver/index.html +0 -22
- package/devserver/test_index.html +0 -22
- package/devserver/test_scroll.html +0 -28
- package/devserver/test_scroll_container.html +0 -39
- package/docs/.ruby-version +0 -1
- package/docs/Gemfile +0 -5
- package/docs/Gemfile.lock +0 -82
- package/docs/_config.yml +0 -126
- package/docs/_entries/events/index.md +0 -6
- package/docs/_entries/events/tree-click.md +0 -37
- package/docs/_entries/events/tree-close.md +0 -15
- package/docs/_entries/events/tree-contextmenu.md +0 -21
- package/docs/_entries/events/tree-dblclick.md +0 -19
- package/docs/_entries/events/tree-init.md +0 -15
- package/docs/_entries/events/tree-load-data.md +0 -15
- package/docs/_entries/events/tree-loading-data.md +0 -27
- package/docs/_entries/events/tree-move.md +0 -73
- package/docs/_entries/events/tree-open.md +0 -15
- package/docs/_entries/events/tree-refresh.md +0 -12
- package/docs/_entries/events/tree-select.md +0 -28
- package/docs/_entries/functions/addnodeafter.md +0 -20
- package/docs/_entries/functions/addnodebefore.md +0 -8
- package/docs/_entries/functions/addparentnode.md +0 -20
- package/docs/_entries/functions/appendnode.md +0 -50
- package/docs/_entries/functions/closenode.md +0 -23
- package/docs/_entries/functions/destroy.md +0 -12
- package/docs/_entries/functions/getnodebycallback.md +0 -24
- package/docs/_entries/functions/getnodebyhtmlelement.md +0 -29
- package/docs/_entries/functions/getnodebyid.md +0 -21
- package/docs/_entries/functions/getselectednode.md +0 -10
- package/docs/_entries/functions/getstate.md +0 -19
- package/docs/_entries/functions/gettree.md +0 -12
- package/docs/_entries/functions/index.md +0 -6
- package/docs/_entries/functions/is-node-selected.md +0 -11
- package/docs/_entries/functions/isdragging.md +0 -12
- package/docs/_entries/functions/loaddata.md +0 -46
- package/docs/_entries/functions/loaddatafromurl.md +0 -55
- package/docs/_entries/functions/movedown.md +0 -8
- package/docs/_entries/functions/movenode.md +0 -15
- package/docs/_entries/functions/moveup.md +0 -8
- package/docs/_entries/functions/opennode.md +0 -44
- package/docs/_entries/functions/prependnode.md +0 -21
- package/docs/_entries/functions/refresh.md +0 -12
- package/docs/_entries/functions/reload.md +0 -22
- package/docs/_entries/functions/removenode.md +0 -12
- package/docs/_entries/functions/scrolltonode.md +0 -13
- package/docs/_entries/functions/selectnode.md +0 -45
- package/docs/_entries/functions/setoption.md +0 -12
- package/docs/_entries/functions/setstate.md +0 -8
- package/docs/_entries/functions/toggle.md +0 -25
- package/docs/_entries/functions/tojson.md +0 -13
- package/docs/_entries/functions/updatenode.md +0 -50
- package/docs/_entries/general/changelog.md +0 -434
- package/docs/_entries/general/demo.html +0 -28
- package/docs/_entries/general/downloads.md +0 -9
- package/docs/_entries/general/examples.md +0 -8
- package/docs/_entries/general/features.md +0 -15
- package/docs/_entries/general/index.md +0 -7
- package/docs/_entries/general/introduction.md +0 -9
- package/docs/_entries/general/requirements.md +0 -6
- package/docs/_entries/general/tutorial.md +0 -71
- package/docs/_entries/general/usecases.md +0 -15
- package/docs/_entries/multiple_selection/add-to-selection.md +0 -21
- package/docs/_entries/multiple_selection/get-selected-nodes.md +0 -10
- package/docs/_entries/multiple_selection/index.md +0 -9
- package/docs/_entries/multiple_selection/remove-from-selection.md +0 -11
- package/docs/_entries/node/children.md +0 -12
- package/docs/_entries/node/getdata.md +0 -17
- package/docs/_entries/node/getlevel.md +0 -13
- package/docs/_entries/node/getnextnode.md +0 -12
- package/docs/_entries/node/getnextsibling.md +0 -10
- package/docs/_entries/node/getnextvisiblenode.md +0 -15
- package/docs/_entries/node/getpreviousnode.md +0 -12
- package/docs/_entries/node/getprevioussibling.md +0 -10
- package/docs/_entries/node/getpreviousvisiblenode.md +0 -15
- package/docs/_entries/node/index.md +0 -13
- package/docs/_entries/node/parent.md +0 -10
- package/docs/_entries/options/animationspeed.md +0 -7
- package/docs/_entries/options/autoescape.md +0 -6
- package/docs/_entries/options/autoopen.md +0 -28
- package/docs/_entries/options/buttonleft.md +0 -12
- package/docs/_entries/options/closedicon.md +0 -26
- package/docs/_entries/options/data-url.md +0 -45
- package/docs/_entries/options/data.md +0 -46
- package/docs/_entries/options/datafilter.md +0 -17
- package/docs/_entries/options/draganddrop.md +0 -18
- package/docs/_entries/options/index.md +0 -6
- package/docs/_entries/options/keyboardsupport.md +0 -14
- package/docs/_entries/options/oncanmove.md +0 -22
- package/docs/_entries/options/oncanmoveto.md +0 -22
- package/docs/_entries/options/oncanselectnode.md +0 -26
- package/docs/_entries/options/oncreateli.md +0 -22
- package/docs/_entries/options/ondragmove.md +0 -20
- package/docs/_entries/options/ondragstop.md +0 -20
- package/docs/_entries/options/onismovehandle.md +0 -17
- package/docs/_entries/options/onloadfailed.md +0 -15
- package/docs/_entries/options/onloading.md +0 -22
- package/docs/_entries/options/openedicon.md +0 -26
- package/docs/_entries/options/openfolderdelay.md +0 -15
- package/docs/_entries/options/rtl.md +0 -18
- package/docs/_entries/options/savestate.md +0 -39
- package/docs/_entries/options/selectable.md +0 -18
- package/docs/_entries/options/showemptyfolder.md +0 -26
- package/docs/_entries/options/slide.md +0 -12
- package/docs/_entries/options/start_dnd_delay.md +0 -13
- package/docs/_entries/options/tabindex.md +0 -14
- package/docs/_entries/options/usecontextmenu.md +0 -14
- package/docs/_examples/01_load_json_data.html +0 -45
- package/docs/_examples/02_load_json_data_from_server.html +0 -29
- package/docs/_examples/03_drag_and_drop.html +0 -42
- package/docs/_examples/04_save_state.html +0 -46
- package/docs/_examples/05_load_on_demand.html +0 -68
- package/docs/_examples/06_autoescape.html +0 -45
- package/docs/_examples/07_autoscroll.html +0 -42
- package/docs/_examples/08_multiple_select.html +0 -60
- package/docs/_examples/09_custom_html.html +0 -61
- package/docs/_examples/10_icon_buttons.html +0 -26
- package/docs/_examples/11_right-to-left.html +0 -25
- package/docs/_examples/12_button_on_right.html +0 -26
- package/docs/_examples/13_drag_outside.html +0 -48
- package/docs/_examples/14_filter.html +0 -111
- package/docs/_layouts/example.html +0 -7
- package/docs/_layouts/page.html +0 -26
- package/docs/documentation.css +0 -3
- package/docs/index.html +0 -65
- package/docs/package.json +0 -22
- package/docs/pnpm-lock.yaml +0 -892
- package/docs/postcss.config.js +0 -7
- package/docs/static/bower.json +0 -8
- package/docs/static/bower_components/fontawesome/css/all.min.css +0 -9
- package/docs/static/bower_components/fontawesome/webfonts/fa-brands-400.ttf +0 -0
- package/docs/static/bower_components/fontawesome/webfonts/fa-brands-400.woff2 +0 -0
- package/docs/static/bower_components/fontawesome/webfonts/fa-regular-400.ttf +0 -0
- package/docs/static/bower_components/fontawesome/webfonts/fa-regular-400.woff2 +0 -0
- package/docs/static/bower_components/fontawesome/webfonts/fa-solid-900.ttf +0 -0
- package/docs/static/bower_components/fontawesome/webfonts/fa-solid-900.woff2 +0 -0
- package/docs/static/bower_components/fontawesome/webfonts/fa-v4compatibility.ttf +0 -0
- package/docs/static/bower_components/fontawesome/webfonts/fa-v4compatibility.woff2 +0 -0
- package/docs/static/bower_components/jquery/dist/jquery.js +0 -10704
- package/docs/static/bower_components/jquery/dist/jquery.min.js +0 -2
- package/docs/static/bower_components/jquery-mockjax/dist/jquery.mockjax.js +0 -1061
- package/docs/static/documentation.js +0 -26
- package/docs/static/example.postcss +0 -68
- package/docs/static/example_data.js +0 -122
- package/docs/static/examples/autoescape.js +0 -17
- package/docs/static/examples/autoscroll.js +0 -6
- package/docs/static/examples/button-on-right.js +0 -13
- package/docs/static/examples/custom_html.js +0 -27
- package/docs/static/examples/drag-outside.js +0 -37
- package/docs/static/examples/drag_and_drop.js +0 -13
- package/docs/static/examples/filter.js +0 -63
- package/docs/static/examples/icon_buttons.js +0 -12
- package/docs/static/examples/load_json_data.js +0 -16
- package/docs/static/examples/load_json_data_from_server.js +0 -9
- package/docs/static/examples/load_on_demand.js +0 -19
- package/docs/static/examples/multiple_select.js +0 -23
- package/docs/static/examples/right-to-left.js +0 -11
- package/docs/static/examples/save_state.js +0 -11
- package/docs/static/monokai.css +0 -70
- package/docs/static/spinner.gif +0 -0
- package/docs/tailwind.config.js +0 -16
- package/sitemap.txt +0 -14
- package/src/playwright/.eslintrc +0 -5
- package/src/playwright/coverage.ts +0 -38
- package/src/playwright/playwright.test.ts +0 -401
- package/src/playwright/playwright.test.ts-snapshots/with-dragAndDrop-moves-a-node-1-Chromium-darwin.png +0 -0
- package/src/playwright/playwright.test.ts-snapshots/with-dragAndDrop-moves-a-node-1-Chromium-linux.png +0 -0
- package/src/playwright/playwright.test.ts-snapshots/without-dragAndDrop-displays-a-tree-1-Chromium-darwin.png +0 -0
- package/src/playwright/playwright.test.ts-snapshots/without-dragAndDrop-displays-a-tree-1-Chromium-linux.png +0 -0
- package/src/playwright/playwright.test.ts-snapshots/without-dragAndDrop-selects-a-node-1-Chromium-darwin.png +0 -0
- package/src/playwright/playwright.test.ts-snapshots/without-dragAndDrop-selects-a-node-1-Chromium-linux.png +0 -0
- package/src/playwright/testUtils.ts +0 -153
- package/src/test/.eslintrc +0 -17
- package/src/test/global.d.ts +0 -1
- package/src/test/jqTree/accessibility.test.ts +0 -25
- package/src/test/jqTree/create.test.ts +0 -54
- package/src/test/jqTree/events.test.ts +0 -290
- package/src/test/jqTree/keyboard.test.ts +0 -247
- package/src/test/jqTree/loadOnDemand.test.ts +0 -198
- package/src/test/jqTree/methods.test.ts +0 -1491
- package/src/test/jqTree/mouse.test.ts +0 -82
- package/src/test/jqTree/options.test.ts +0 -595
- package/src/test/node.test.ts +0 -1396
- package/src/test/nodeUtils.test.ts +0 -21
- package/src/test/position.test.ts +0 -30
- package/src/test/support/exampleData.ts +0 -23
- package/src/test/support/jqTreeMatchers.ts +0 -68
- package/src/test/support/matchers.d.ts +0 -31
- package/src/test/support/setupTests.ts +0 -5
- package/src/test/support/testUtil.ts +0 -30
- package/src/test/support/treeStructure.ts +0 -39
- package/src/test/util.test.ts +0 -27
- package/tsconfig.json +0 -24
|
@@ -1,434 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Changelog
|
|
3
|
-
name: changelog
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
#### 1.8.2 (march 24 2024)
|
|
7
|
-
|
|
8
|
-
- Issue #751: fix dnd regression (thanks to Tom De Ford)
|
|
9
|
-
|
|
10
|
-
#### 1.8.1 (march 16 2024)
|
|
11
|
-
|
|
12
|
-
- Issue #791: fix onCanMoveTo (thanks to Christophe Caron)
|
|
13
|
-
|
|
14
|
-
#### 1.8.0 (november 26 2023)
|
|
15
|
-
|
|
16
|
-
This release drops support for very old browsers (like IE 11).
|
|
17
|
-
|
|
18
|
-
- Issue #735: compile to es6. This decreases the file size to 49K (from 62K). This is the minified (not gzipped) version.
|
|
19
|
-
- Issue #766: open parent nodes in the addToSelection method (thanks to Tmgarcia)
|
|
20
|
-
|
|
21
|
-
#### 1.7.5 (october 21 2023)
|
|
22
|
-
|
|
23
|
-
- Issue #734: fix autoscroll issue (thanks to WriterStat)
|
|
24
|
-
- issue #736: fix empty folder for prepend
|
|
25
|
-
|
|
26
|
-
#### 1.7.4 (september 24 2023)
|
|
27
|
-
|
|
28
|
-
- Issue #675: support toggler on the right with multiline (thanks to Odungern)
|
|
29
|
-
- Issue #751: fix inconsistent/incorrect drag & drop node highlighting (thanks to Tom De Ford)
|
|
30
|
-
|
|
31
|
-
#### 1.7.3 (september 16 2023)
|
|
32
|
-
|
|
33
|
-
- Issue #746: set jQuery as a peer dependency
|
|
34
|
-
- Issue #747: fix eslint import error
|
|
35
|
-
|
|
36
|
-
#### 1.7.2 (september 14 2023)
|
|
37
|
-
|
|
38
|
-
- Issue #732: improve types of closedIcon and openedIcon
|
|
39
|
-
- Issue #736: use the bundle in the package.json (thanks to TivoSoho)
|
|
40
|
-
|
|
41
|
-
#### 1.7.1 (august 6 2023)
|
|
42
|
-
|
|
43
|
-
- Issue #724: improve accessibility
|
|
44
|
-
|
|
45
|
-
#### 1.7.0 (december 23 2022)
|
|
46
|
-
|
|
47
|
-
Small breaking change: this release changes the definition of getPreviousNode and getNextNode.
|
|
48
|
-
|
|
49
|
-
- Issue #704: dispatch the tree.load_data after initializing the tree
|
|
50
|
-
- Issue #706: change the functions for getting the next and previous nodes.
|
|
51
|
-
- Rename getPreviousNode to getPreviousVisibleNode and getNextNode to getNextVisibleNode.
|
|
52
|
-
- Add new getPreviousNode and getNextNode functions that ignores if a node is visible.
|
|
53
|
-
|
|
54
|
-
#### 1.6.3 (august 7 2022)
|
|
55
|
-
|
|
56
|
-
- Issue # 692: openFolderDelay is false disables opening folders during drag and drop
|
|
57
|
-
|
|
58
|
-
#### 1.6.2 (december 15 2021)
|
|
59
|
-
|
|
60
|
-
- Issue #662: fix left alignment for option buttonLeft: false (thanks to Odungern)
|
|
61
|
-
- Issue #669: restore focus after load on demand (thanks to Jaccoky)
|
|
62
|
-
|
|
63
|
-
#### 1.6.1 (june 24 2021)
|
|
64
|
-
|
|
65
|
-
- Issues #652 and #655: add filter example
|
|
66
|
-
- Issue #655: add refresh method
|
|
67
|
-
|
|
68
|
-
#### 1.6.0 (february 9 2021)
|
|
69
|
-
|
|
70
|
-
- Issue #647: improve performance of internal node lookup
|
|
71
|
-
- Changed: getNodeById doesn't convert strings to numbers anymore
|
|
72
|
-
- Issue #648: fix drag-and-drop on ie11
|
|
73
|
-
|
|
74
|
-
##### 1.5.3 (january 12 2021)
|
|
75
|
-
|
|
76
|
-
- Issue #640: add startDndDelay option (thanks to Erik van Eykelen)
|
|
77
|
-
|
|
78
|
-
##### 1.5.2 (october 25 2020)
|
|
79
|
-
|
|
80
|
-
- Issue #621: decrease build size using Rollup
|
|
81
|
-
- Issue #624: updateNode: check if the focus must be reset (thanks to Erik van Eykelen)
|
|
82
|
-
- Issue #626: improve autoScroll when using the onCanMoveTo option (thanks to Dmytro Tarianyk)
|
|
83
|
-
|
|
84
|
-
##### 1.5.1 (september 23 2020)
|
|
85
|
-
|
|
86
|
-
- Issue #615: fix XSS vulnerability (thanks to Aimeos)
|
|
87
|
-
- Issue #618: fix autoescape (thanks to Jorge Casas)
|
|
88
|
-
|
|
89
|
-
##### 1.5.0 (september 6 2020)
|
|
90
|
-
|
|
91
|
-
- Issue #603: improve performance of title rendering (thanks to Bekefi Gergely)
|
|
92
|
-
|
|
93
|
-
##### 1.4.12 (november 11 2019)
|
|
94
|
-
|
|
95
|
-
- Issue #579: have icon for empty folders (thanks to Andrew Hinde)
|
|
96
|
-
- Issue #583: improve performance of deleting a node (thanks to maltmann-muc)
|
|
97
|
-
|
|
98
|
-
##### 1.4.11 (july 22 2019)
|
|
99
|
-
|
|
100
|
-
- Issue #571: add options to selectNode
|
|
101
|
-
|
|
102
|
-
##### 1.4.10 (april 6 2019)
|
|
103
|
-
|
|
104
|
-
- Issue #554: fix wrapping of long node titles (thanks to Damian Kulp)
|
|
105
|
-
- Issue #557: devserver serves from root (thanks to Aaron Gray)
|
|
106
|
-
- Issue #558: check for null parameters
|
|
107
|
-
|
|
108
|
-
##### 1.4.9 (september 9 2018)
|
|
109
|
-
|
|
110
|
-
- Issue #532: add tree.loading_data event (thanks to Theo Bot)
|
|
111
|
-
|
|
112
|
-
##### 1.4.8 (july 23 2018)
|
|
113
|
-
|
|
114
|
-
- Issue #537: SVG xlink as openedIcon/closedIcon disappear after click (thanks to Terry Ouyang)
|
|
115
|
-
- Issue #538: add typescript type definitions
|
|
116
|
-
|
|
117
|
-
##### 1.4.7 (june 16 2018)
|
|
118
|
-
|
|
119
|
-
- Issue #531: updateNode must trigger tree.refresh (thanks to TivoSoho)
|
|
120
|
-
|
|
121
|
-
##### 1.4.6 (may 8 2018)
|
|
122
|
-
|
|
123
|
-
- Issue #525: add debug build (tree.jquery.debug.js) (thanks to Yurayko)
|
|
124
|
-
- Issue #526: correctly load on demand if dataUrl is an object (thanks to Yurayko)
|
|
125
|
-
|
|
126
|
-
##### 1.4.5 (march 14 2018)
|
|
127
|
-
|
|
128
|
-
- Issue #515: do not use deprecated jquery functions
|
|
129
|
-
- Issue #520: add mustSetFocus parameter to addToSelection (thanks to Romario Costegillio)
|
|
130
|
-
|
|
131
|
-
##### 1.4.4 (december 21 2017)
|
|
132
|
-
|
|
133
|
-
- Issue #506: use jQuery alias to fix conflict with Prototype.js
|
|
134
|
-
- Issue #508: handle horizontal scrolling (thanks to Troels Holstein Kaa)
|
|
135
|
-
|
|
136
|
-
##### 1.4.3 (october 22 2017)
|
|
137
|
-
|
|
138
|
-
- Issue #503: add animationSpeed option
|
|
139
|
-
|
|
140
|
-
##### 1.4.2 (july 15 2017)
|
|
141
|
-
|
|
142
|
-
- Issue #489: make it possible to use nested element for icon (thanks to
|
|
143
|
-
terryoy)
|
|
144
|
-
- Issue #492: handle empty string for icon options
|
|
145
|
-
- Issue #493: add tabIndex option (thanks to Aimeos)
|
|
146
|
-
- Issue #494: remove tabindex if a node is deselected (thanks to Aimeos)
|
|
147
|
-
|
|
148
|
-
##### 1.4.1 (june 5 2017)
|
|
149
|
-
|
|
150
|
-
- Issue #487: setState must clear the selection (thanks to terryoy)
|
|
151
|
-
- Issue #488: add is_selected parameter to onCreateLi
|
|
152
|
-
|
|
153
|
-
##### 1.4.0 (may 12 2017)
|
|
154
|
-
|
|
155
|
-
- Issue #481: fixed error that occured when opening an invalid node (thanks to
|
|
156
|
-
Luciano Deriu)
|
|
157
|
-
- Issue #482: changed keyboard logic (thanks to bnsblue)
|
|
158
|
-
- Set focus to the selected node.
|
|
159
|
-
- The keyboard is active if a tree node has the focus.
|
|
160
|
-
|
|
161
|
-
##### 1.3.8 (april 12 2017)
|
|
162
|
-
|
|
163
|
-
- Issue #471: use webpack instead of browserify
|
|
164
|
-
- Issue #472: use 'jquery.on' instead of deprecated 'bind'
|
|
165
|
-
- Issue #478: use typescript instead of coffeescript
|
|
166
|
-
- Issue #480: support jquery 3.2.x
|
|
167
|
-
|
|
168
|
-
##### 1.3.7 (january 11 2017)
|
|
169
|
-
|
|
170
|
-
- Issue 462: add on_finished parameter to openNode function
|
|
171
|
-
- Issue 467: fix autoscroll when tree position changes after tree init (thanks
|
|
172
|
-
to Themre)
|
|
173
|
-
|
|
174
|
-
##### 1.3.6 (november 5 2016)
|
|
175
|
-
|
|
176
|
-
- Issue 453: make it possible to initialize the tree without data
|
|
177
|
-
- Issue 455: isNodeSelected must return boolean (thanks to Joshua Harrison)
|
|
178
|
-
|
|
179
|
-
##### 1.3.5 (september 15 2016)
|
|
180
|
-
|
|
181
|
-
- Issue 437: autoEscape option applies to dragged elements
|
|
182
|
-
- Issue 448: calling updateNode with an empty children array should remove the
|
|
183
|
-
children
|
|
184
|
-
|
|
185
|
-
##### 1.3.4 (july 18 2016)
|
|
186
|
-
|
|
187
|
-
- Issue 433: Added getNodeByHtmlElement function
|
|
188
|
-
- Issue 435: Added getNodeByCallback function
|
|
189
|
-
- Issue 437: Fix XSS issue in drag and drop
|
|
190
|
-
|
|
191
|
-
##### 1.3.3 (may 30 2016)
|
|
192
|
-
|
|
193
|
-
- Issue 420: Set the correct aria-level after updating a node (thanks to Fermin
|
|
194
|
-
Gallego)
|
|
195
|
-
- Issue 426 and 427: Make it possible to append a subtree using appendNode
|
|
196
|
-
- also works for addNodeAfter, addNodeBefore, prependNode and updateNode
|
|
197
|
-
|
|
198
|
-
##### 1.3.2 (march 3 2016)
|
|
199
|
-
|
|
200
|
-
- Issue 412: Set ajax parameters in dataUrl option (thanks to Atul Bajpai)
|
|
201
|
-
- Issue 415: Add onLoading callback parameter
|
|
202
|
-
|
|
203
|
-
##### 1.3.0 (november 8 2015)
|
|
204
|
-
|
|
205
|
-
- Issue 234: Added onDragMove and onDragStop callbacks
|
|
206
|
-
- Issue 394: Label displays 'null' in UI when the label key is null (thanks to
|
|
207
|
-
Carlos Ponce)
|
|
208
|
-
- Issue 396: Trigger init.tree correctly for load on demand (thanks to jmashore)
|
|
209
|
-
- Issue 397: Aria accessibility support (thanks to Rich Caloggero)
|
|
210
|
-
- Issue 398: Functions should return the `jquery` element
|
|
211
|
-
- Issue 400: Added on_finished parameter to reload function
|
|
212
|
-
- Issue 402: Fix autoscroll when tree element is created outside the dom (thanks
|
|
213
|
-
to hbaptiste)
|
|
214
|
-
|
|
215
|
-
##### 1.2.1 (july 14 2015)
|
|
216
|
-
|
|
217
|
-
- Issue 48: Added right-to-left support (thanks to Mohamed Ouederni, Ashraf
|
|
218
|
-
Fayad and Udi Oron)
|
|
219
|
-
- Issue 371: Added include_parent parameter to getData function
|
|
220
|
-
- Issue 375: Fix conflict with prototype.js (thanks to Henry de Guzman)
|
|
221
|
-
|
|
222
|
-
##### 1.1.0 (april 6 2015)
|
|
223
|
-
|
|
224
|
-
- Issue 348: Circle for drag-and-drop is not positioned correctly for content
|
|
225
|
-
box-sizing
|
|
226
|
-
- Issue 356: Fixed drag-and-drop after nodeUpdate (thanks to Iker Vázquez)
|
|
227
|
-
- Issue 360: Add a trailing semicolon to tree.jquery.js (thanks to David Thenon)
|
|
228
|
-
|
|
229
|
-
##### 1.0.0 (january 11 2015)
|
|
230
|
-
|
|
231
|
-
- Issues 273 and 304: autoOpen and saveState now works for nodes that are loaded
|
|
232
|
-
on demand
|
|
233
|
-
- Issue 283: Added getNodesByProperty function (thanks to Neeraj)
|
|
234
|
-
- Issue 332: openNode should open parent nodes (thanks to Kitano Yoshitomo)
|
|
235
|
-
- Issue 335: Add cloneNode missing argument for Gecko <13.0 (thanks to Tvinky)
|
|
236
|
-
- Issue 337: Added functions for moving up and down
|
|
237
|
-
- Issue 341: Fixed drag-and-drop border when nodes have padding (thanks to Alex
|
|
238
|
-
Musayev)
|
|
239
|
-
|
|
240
|
-
##### 0.22 (september 25 2014)
|
|
241
|
-
|
|
242
|
-
- Issue 291: Dragging Item - do not open node if you don't stay over it (thanks
|
|
243
|
-
to Roman Klos)
|
|
244
|
-
- Issue 300: Toggle function should get default slide value from options (thanks
|
|
245
|
-
to Tazle)
|
|
246
|
-
- Issue 303: Correctly set selected_node parameter in query string
|
|
247
|
-
- Issue 315: Fix for issue when moving node over closed folder (thanks to
|
|
248
|
-
terrybr)
|
|
249
|
-
- Issue 320: Fixed error in drag and drop (thanks to Jerry Wu)
|
|
250
|
-
|
|
251
|
-
##### 0.21 (june 7 2014)
|
|
252
|
-
|
|
253
|
-
- Issue 263: Improve styling of toggle button
|
|
254
|
-
- Issue 266: Make it possible to use html for toggle buttons
|
|
255
|
-
- Issue 262: updateNode on first level makes node disappear (thanks to Miloš
|
|
256
|
-
Đekić)
|
|
257
|
-
- Issue 260: Exempt 'select' elements from keyboard navigation (thanks to Eli
|
|
258
|
-
Flanagan)
|
|
259
|
-
- Issue 270: Fixed error 'selected_single_node is not defined' (thanks to Bryan
|
|
260
|
-
Smith)
|
|
261
|
-
- Issue 279: .jqtree-moving removed when loading subtree (thanks to Marc-Stefan
|
|
262
|
-
Cassola)
|
|
263
|
-
- Issue 280: CSS3 Circle and style optimization (thanks to Marc-Stefan Cassola)
|
|
264
|
-
- Issue 283: Added function getNodesByProperty (thanks to Cedrik Vanderhaegen)
|
|
265
|
-
- Issue 292: Save state if multiple nodes are selected (thanks to MykhailoP)
|
|
266
|
-
- Issue 294: Handle click on input element in tree (thanks to Naeco33)
|
|
267
|
-
|
|
268
|
-
##### 0.20 (march 9 2014)
|
|
269
|
-
|
|
270
|
-
- Issue 235: Added setOption function
|
|
271
|
-
- Issue 241: Prevent duplicate event call after re-initalization
|
|
272
|
-
- Issue 246: Check if folder must be opened while moving node (thanks to Dave
|
|
273
|
-
Gardner)
|
|
274
|
-
- Issue 247: Improve performance of updateNode (thanks to Gordon Woodhull)
|
|
275
|
-
- Issue 250: Improve performance of creating dom elements (thanks to Carlos
|
|
276
|
-
Scheidegger)
|
|
277
|
-
- Issue 252: BorderDropHint has wrong height for border-box box-sizing (thanks
|
|
278
|
-
to simshaun)
|
|
279
|
-
- Issue 253: Added reload function
|
|
280
|
-
- Issue 256: Toggler button is underlined
|
|
281
|
-
- Issue 257: Make it possible to open a lazily loaded folder using the keyboard
|
|
282
|
-
- Issue 258: Correctly unselect children if a node is reloaded
|
|
283
|
-
|
|
284
|
-
##### 0.19 (december 8 2013)
|
|
285
|
-
|
|
286
|
-
- Issue 225: Fixes TypeError when removing nodes without ids that aren't
|
|
287
|
-
selected (thanks to Marcus McCurdy)
|
|
288
|
-
- Issue 222: scrollToNode does not consider direct parent
|
|
289
|
-
- Issue 228: add property click_event to tree.click and tree.dblclick events
|
|
290
|
-
(thanks to Gordon Woodhull)
|
|
291
|
-
- Issue 78: Added option openFolderDelay: the delay for opening a folder during
|
|
292
|
-
drag-and-drop (thanks to Jason Diamond)
|
|
293
|
-
|
|
294
|
-
##### 0.18 (september 17 2013)
|
|
295
|
-
|
|
296
|
-
- Issue 132: Skip keyboard handling if focus is on input element (thanks to
|
|
297
|
-
Bingeling)
|
|
298
|
-
- Issue 179 and 180: Added dataFilter option to filter the returned data from
|
|
299
|
-
jQuery.ajax (thanks to Cheton Wu and Tony Dilger)
|
|
300
|
-
- Issue 184: If the node id is 0, the id mapping is incorrect (thanks to Ika Wu)
|
|
301
|
-
- Issue 190: The function selectNode should not toggle (thanks to Gordon
|
|
302
|
-
Woodhull)
|
|
303
|
-
- Issue 192: Added keyboardSupport option (thanks to Ika Wu)
|
|
304
|
-
- Issue 181: Added tree.dblclick event (thanks to eskaigualker)
|
|
305
|
-
- Issue 196: localStorage doesn't work in Safari private browsing (thanks to
|
|
306
|
-
thebagg)
|
|
307
|
-
- Issue 203: Adding deselected_node attribute to event object of tree.select
|
|
308
|
-
event (thanks to tedtoer)
|
|
309
|
-
|
|
310
|
-
##### 0.17 (july 14 2013)
|
|
311
|
-
|
|
312
|
-
- Issue 132: Added keyboard support
|
|
313
|
-
- Issue 154: Calling loadDataFromUrl should not trigger tree.init event (thanks
|
|
314
|
-
to Davide Bellini)
|
|
315
|
-
- Issue 158: Index not updated on updateNode (thanks to Sam Mousa)
|
|
316
|
-
- Issue 159: Cannot reselect node after unselecting it (thanks to Comanche)
|
|
317
|
-
- Issue 162: Added getPreviousSibling and getNextSibling functions (thanks to
|
|
318
|
-
Dimaninc)
|
|
319
|
-
- Issue 169: Added touch support (thanks to Comanche)
|
|
320
|
-
- Issue 171: Added functions getState and setState
|
|
321
|
-
- Issue 175: Make it possible to install jqTree using bower (thanks to Adam
|
|
322
|
-
Miskiewicz)
|
|
323
|
-
|
|
324
|
-
##### 0.16 (may 17 2013)
|
|
325
|
-
|
|
326
|
-
- Issue 62: Added functions for multiple select
|
|
327
|
-
- Issue 125: Add option for overriding TRIANGLE_RIGHT and TRIANGLE_DOWN (thanks
|
|
328
|
-
to Sam D)
|
|
329
|
-
- Issue 126: Event tree.open event fires after first tree.select on top level
|
|
330
|
-
node
|
|
331
|
-
- Issue 129: Allow native context menu to be display (thanks to Charles
|
|
332
|
-
Bourasseau)
|
|
333
|
-
- Issue 130: Selectable not implemented (thanks to Sam D)
|
|
334
|
-
- Issue 133: loadDataFromUrl doesn't work when only parent_node and callback are
|
|
335
|
-
passed in (thanks to Simone Deponti)
|
|
336
|
-
- Issue 134: selectNode from inside tree.init breaks on loadData (thanks to Sam
|
|
337
|
-
D)
|
|
338
|
-
- Issue 145: Auto-open nodes with drag n drop when drag not enabled for that
|
|
339
|
-
node (thanks to Daniel Powell)
|
|
340
|
-
- Issue 146: Added function scrollToNode (thanks to Davide Bellini)
|
|
341
|
-
|
|
342
|
-
##### 0.15 (march 16 2013)
|
|
343
|
-
|
|
344
|
-
- Issue 100: Clicking on the jqtree-element element will trigger click event
|
|
345
|
-
- Issue 102: Add original event to tree.move event
|
|
346
|
-
- Issue 103: Added getLevel function to Node class
|
|
347
|
-
- Issue 104: The addNodeBefore method must return the new node
|
|
348
|
-
- Issue 105: Added nodeClass option
|
|
349
|
-
- Issue 112: Fix call to iterate in removeNode (thanks to Ingemar Ådahl)
|
|
350
|
-
- Issue 113: Added onLoadFailed option (thanks to Shuhei Kondo)
|
|
351
|
-
- Issue 118: Deselect a node when click and already selected
|
|
352
|
-
- Issue 119: Make it easier to reload a subtree
|
|
353
|
-
- Issue 121: Unselect node if it's reloaded by loadDataFromUrl
|
|
354
|
-
|
|
355
|
-
##### 0.14 (december 2 2012)
|
|
356
|
-
|
|
357
|
-
###### Api changes
|
|
358
|
-
|
|
359
|
-
- Removed parameter **must_open_parents** from function **selectNode**.
|
|
360
|
-
- Changed **slide** parameter in functions **openNode** and **closeNode**.
|
|
361
|
-
|
|
362
|
-
###### Issues
|
|
363
|
-
|
|
364
|
-
- Issue 80: Support more options for loading data from the server. E.g. the
|
|
365
|
-
'post' method (thanks to Rodrigo Rosenfeld Rosas)
|
|
366
|
-
- Issue 81: getSelectedNode must return false if node is removed
|
|
367
|
-
- Issue 82: Autoscroll for drag-and-drop
|
|
368
|
-
- Issue 84: Fix correct type param in \$.ajax() (thanks to Rodrigo Rosenfeld
|
|
369
|
-
Rosas)
|
|
370
|
-
- Issue 85: Option to turn slide animation on or off
|
|
371
|
-
- Issue 86: The openNode function must automatically open parents
|
|
372
|
-
- Issue 87: Remove the must_open_parents parameter from the selectNode function
|
|
373
|
-
- Issue 88: selectNode must also work if selectable option is false
|
|
374
|
-
- Issue 89: Clicking in title with img or em does not work
|
|
375
|
-
- Issue 96: Added jqtree_common class to avoid css clashes (thanks to Yaniv Iny)
|
|
376
|
-
|
|
377
|
-
##### 0.13 (october 10 2012)
|
|
378
|
-
|
|
379
|
-
- Issue 54: Added tree.select event
|
|
380
|
-
- Issue 63: Fixed contextmenu event
|
|
381
|
-
- Issue 67: Use unicode characters for triangle buttons (thanks to Younès)
|
|
382
|
-
- Issue 70: Load data from the server using the loadData function
|
|
383
|
-
- Issue 78: Drag and drop is trigger happy
|
|
384
|
-
|
|
385
|
-
##### 0.12 (august 14 2012)
|
|
386
|
-
|
|
387
|
-
- Issue 46: Added tree.refresh event
|
|
388
|
-
- Issue 47: Function 'selectNode' must properly open the parent nodes
|
|
389
|
-
- Issue 49: Make sure that widget functions can be called in the 'tree.init'
|
|
390
|
-
event
|
|
391
|
-
- Issue 50: Add namespace to css classes
|
|
392
|
-
- Issue 51: closeNode to collapse tree doesn't work
|
|
393
|
-
- Issue 55: Load-on-demand from the server
|
|
394
|
-
- Issue 58: Added updateNode function
|
|
395
|
-
- Issue 59: Added moveNode function
|
|
396
|
-
- Issue 60: Use native JSON.stringify function
|
|
397
|
-
|
|
398
|
-
##### 0.11 (july 8 2012)
|
|
399
|
-
|
|
400
|
-
- Autoescape text
|
|
401
|
-
- Added autoEscape option
|
|
402
|
-
- Issue 33: appendNode does not correctly refresh the tree
|
|
403
|
-
- Issue 34: unset internal pointer to previously selected node on DOM deselect
|
|
404
|
-
- Issue 38: Correctly check if browser has support for localstorage
|
|
405
|
-
- Issue 41: Open nodes are not displayed correctly in ie7
|
|
406
|
-
|
|
407
|
-
##### 0.10 (june 10 2012)
|
|
408
|
-
|
|
409
|
-
- Optimized getNodeById
|
|
410
|
-
- Issue #18 and #26: Made comparison in getNodeById less strict
|
|
411
|
-
- Added function prependNode
|
|
412
|
-
- Added 'data-url' option
|
|
413
|
-
- Added removeNode function
|
|
414
|
-
- Issue #24: Tree with jquery ui Dialog: expand causes resize and move problem
|
|
415
|
-
- Added Travis ci support
|
|
416
|
-
- Added addNodeAfter, addNodeBefore and addParentNode
|
|
417
|
-
- Renamed icons.png to jqtree-icons.png
|
|
418
|
-
- selectNode with empty node deselects the current node
|
|
419
|
-
|
|
420
|
-
##### 0.9 (may 9 2012)
|
|
421
|
-
|
|
422
|
-
- Issue 15: 'tree.open' event is not triggered when dragging nodes
|
|
423
|
-
- Issue 18: Allow moveNode to be canceled through ev.preventDefault()
|
|
424
|
-
- Use sprite for images
|
|
425
|
-
- Added function closeNode
|
|
426
|
-
- Added support for localstorage
|
|
427
|
-
- Implemented alternative data format
|
|
428
|
-
|
|
429
|
-
##### 0.8 (april 18 2012)
|
|
430
|
-
|
|
431
|
-
- Replace jquery.ui widget with SimpleWidget
|
|
432
|
-
- Added 'previous_parent' to 'tree.move' event
|
|
433
|
-
- Add posibility to load subtree
|
|
434
|
-
- Added 'tree.open' and 'tree.close' events
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Demo
|
|
3
|
-
name: demo
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
{% highlight js %}
|
|
7
|
-
var data = [
|
|
8
|
-
{
|
|
9
|
-
name: 'node1', id: 1,
|
|
10
|
-
children: [
|
|
11
|
-
{ name: 'child1', id: 2 },
|
|
12
|
-
{ name: 'child2', id: 3 }
|
|
13
|
-
]
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
name: 'node2', id: 4,
|
|
17
|
-
children: [
|
|
18
|
-
{ name: 'child3', id: 5 }
|
|
19
|
-
]
|
|
20
|
-
}
|
|
21
|
-
];
|
|
22
|
-
$('#tree1').tree({
|
|
23
|
-
data: data,
|
|
24
|
-
autoOpen: true,
|
|
25
|
-
dragAndDrop: true
|
|
26
|
-
});
|
|
27
|
-
{% endhighlight %}
|
|
28
|
-
<div id="tree1" class="not-prose"></div>
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Downloads
|
|
3
|
-
name: downloads
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
* All (version {{ site.jqtree_version }}): [jqTree.tar.gz](https://github.com/mbraak/jqTree/tarball/master)
|
|
7
|
-
* Javascript: [tree.jquery.js](tree.jquery.js)
|
|
8
|
-
* Css: [jqtree.css](jqtree.css)
|
|
9
|
-
* Image: [jqtree-circle.png](jqtree-circle.png)
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Features
|
|
3
|
-
name: features
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
- Create a tree from JSON data
|
|
7
|
-
- Load data using ajax
|
|
8
|
-
- Drag and drop
|
|
9
|
-
- Saves the state
|
|
10
|
-
- Keyboard support
|
|
11
|
-
- Lazy loading
|
|
12
|
-
- Works on all modern browsers
|
|
13
|
-
- Written in Typescript
|
|
14
|
-
|
|
15
|
-
The project is [hosted on github](https://github.com/mbraak/jqTree).
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Introduction
|
|
3
|
-
name: introduction
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
JqTree is a jQuery widget for displaying a **tree structure** in html. It supports **json data**, loading via
|
|
7
|
-
**ajax** and **drag-and-drop**.
|
|
8
|
-
|
|
9
|
-
[](https://www.npmjs.com/package/jqtree)
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Tutorial
|
|
3
|
-
name: Tutorial
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
Include [jQuery](http://code.jquery.com/jquery.min.js)
|
|
7
|
-
|
|
8
|
-
{% highlight html %}
|
|
9
|
-
<script src="jquery.min.js"></script>
|
|
10
|
-
{% endhighlight %}
|
|
11
|
-
|
|
12
|
-
Include tree.jquery.js:
|
|
13
|
-
|
|
14
|
-
{% highlight html %}
|
|
15
|
-
<script src="tree.jquery.js"></script>
|
|
16
|
-
{% endhighlight %}
|
|
17
|
-
|
|
18
|
-
Include jqtree.css:
|
|
19
|
-
|
|
20
|
-
{% highlight html %}
|
|
21
|
-
<link rel="stylesheet" href="jqtree.css">
|
|
22
|
-
{% endhighlight %}
|
|
23
|
-
|
|
24
|
-
Create a div.
|
|
25
|
-
|
|
26
|
-
{% highlight html %}
|
|
27
|
-
<div id="tree1"></div>
|
|
28
|
-
{% endhighlight %}
|
|
29
|
-
|
|
30
|
-
Create tree data.
|
|
31
|
-
|
|
32
|
-
{% highlight js %}
|
|
33
|
-
var data = [
|
|
34
|
-
{
|
|
35
|
-
name: 'node1',
|
|
36
|
-
children: [
|
|
37
|
-
{ name: 'child1' },
|
|
38
|
-
{ name: 'child2' }
|
|
39
|
-
]
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
name: 'node2',
|
|
43
|
-
children: [
|
|
44
|
-
{ name: 'child3' }
|
|
45
|
-
]
|
|
46
|
-
}
|
|
47
|
-
];
|
|
48
|
-
{% endhighlight %}
|
|
49
|
-
|
|
50
|
-
Create tree widget.
|
|
51
|
-
|
|
52
|
-
{% highlight js %}
|
|
53
|
-
$(function() {
|
|
54
|
-
$('#tree1').tree({
|
|
55
|
-
data: data
|
|
56
|
-
});
|
|
57
|
-
});
|
|
58
|
-
{% endhighlight %}
|
|
59
|
-
|
|
60
|
-
Alternatively, get the data from the server.
|
|
61
|
-
|
|
62
|
-
{% highlight js %}
|
|
63
|
-
$.getJSON(
|
|
64
|
-
'/some_url/',
|
|
65
|
-
function(data) {
|
|
66
|
-
$('#tree1').tree({
|
|
67
|
-
data: data
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
);
|
|
71
|
-
{% endhighlight %}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Use cases
|
|
3
|
-
name: usecases
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
Use cases or implementations of JqTree
|
|
7
|
-
|
|
8
|
-
##### With AngularJS and FireBase
|
|
9
|
-
* [https://github.com/romelgomez/jqtree-angularjs-firebase-example](https://github.com/romelgomez/jqtree-angularjs-firebase-example)
|
|
10
|
-
|
|
11
|
-
##### With CakePHP and OpenShift
|
|
12
|
-
* Code: [https://github.com/romelgomez/jqtree-cakephp-openshift-example](https://github.com/romelgomez/jqtree-cakephp-openshift-example)
|
|
13
|
-
|
|
14
|
-
##### With Spring MVC and Google App Engine
|
|
15
|
-
* Code: [https://github.com/romelgomez/jqtree-spring-mvc-gae-example](https://github.com/romelgomez/jqtree-spring-mvc-gae-example)
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: addToSelection
|
|
3
|
-
name: multiple-selection-add-to-selection
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
Add this node to the selection. Also set the focus to the node.
|
|
7
|
-
|
|
8
|
-
**function addToSelection(node, mustSetFocus = true);**
|
|
9
|
-
|
|
10
|
-
Parameter **mustSetFocus**: set the focus to the node (default true).
|
|
11
|
-
|
|
12
|
-
{% highlight js %}
|
|
13
|
-
var node = $('#tree1').tree('getNodeById', 123);
|
|
14
|
-
$('#tree1').tree('addToSelection', node);
|
|
15
|
-
{% endhighlight %}
|
|
16
|
-
|
|
17
|
-
Without setting the focus:
|
|
18
|
-
|
|
19
|
-
{% highlight js %}
|
|
20
|
-
$('#tree1').tree('addToSelection', node, false);
|
|
21
|
-
{% endhighlight %}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Multiple selection
|
|
3
|
-
name: multiple-selection
|
|
4
|
-
section: true
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
Jqtree has some functions that can help you to implement multiple selection. See [Example 8 - multiple select](examples/08_multiple_select).
|
|
8
|
-
|
|
9
|
-
In order for multiple selection to work, you must give the nodes an id.
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: removeFromSelection
|
|
3
|
-
name: multiple-selection-remove-from-selection
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
Remove this node from the selection.
|
|
7
|
-
|
|
8
|
-
{% highlight js %}
|
|
9
|
-
var node = $('#tree1').tree('getNodeById', 123);
|
|
10
|
-
$('#tree1').tree('removeFromSelection', node);
|
|
11
|
-
{% endhighlight %}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: children
|
|
3
|
-
name: node-functions-children
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
You can access the children of a node using the **children** property.
|
|
7
|
-
|
|
8
|
-
{% highlight js %}
|
|
9
|
-
for (var i=0; i < node.children.length; i++) {
|
|
10
|
-
var child = node.children[i];
|
|
11
|
-
}
|
|
12
|
-
{% endhighlight %}
|