Skip to content

Commit 691c4ed

Browse files
committed
Merge branch 'master' into types2
# Conflicts: # CHANGELOG.md # Gruntfile.coffee # dist/modules/jquery.fancytree.logger.js # src/jquery.fancytree.columnview.js # src/jquery.fancytree.js # src/jquery.fancytree.select.js
1 parent de6af8e commit 691c4ed

File tree

20 files changed

+599
-276
lines changed

20 files changed

+599
-276
lines changed

CHANGELOG.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,20 @@
33
* Auto-apply tree.types.icon, .iconTooltip, tooltip
44

55
# 2.30.1-0 / Unreleased
6-
* Apply and enforce 'prettier' codestyle
6+
* [Changed] Apply and enforce 'prettier' codestyle
7+
* [Changed] #897 Set font for table extension
78
* [Fixed] #894: Fancytree assertion failed: scrollParent should be a simple element or `window`, not document or body.
89
* [Fixed] #896 _requireExtension: order managment
9-
* [Changed] #897 Set font for table extension
10+
* [Fixed] #899 Creating duplicate icon when removing node using extension columnview
11+
* [Fixed] #900 ColumnView Extension - Toggle between parent and children not working
1012

1113
# 2.30.0 / 2018-09-02
1214
* [Changed] ext-edit trigger 'clickActive' now only triggers if no modifier keys
1315
(shift, meta, control, ...) are pressed.<br>
1416
Trigger 'shift+click' now only triggers if no other modifier key (control, ...)
1517
is pressed.
18+
* [Changed] #879 Rename ext-debug to ext-logger
19+
(jquery.fancytree.debug.js => jquery.fancytree.logger.js)
1620
* [Added] ext-multi is now deployed with jquery.fancytree-all.js (still experimental)
1721
* [Added] tree.activateKey(key, opts) now has an `opts` argument
1822
* [Added] `nodata` option (bool, string, or callback)
@@ -25,8 +29,6 @@
2529
* [Fixed] #877 postProcess may now also return the object form `{..., children: []}`
2630
* [Fixed] #884 ReferenceError: jQuery is not defined at _simpleDeepMerge
2731
* [Fixed] autoScroll, node.scrollIntoView(), and .makeVisible() now work for tables as well.
28-
* [Changed] #879 Rename ext-debug to ext-logger
29-
(jquery.fancytree.debug.js => jquery.fancytree.logger.js)
3032

3133
# 2.29.1 / 2018-06-27
3234
* [Fixed] #848 Drag End Error with dnd5 extension (again):

Gruntfile.coffee

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ module.exports = (grunt) ->
240240
"src/jquery.fancytree.js"
241241
"src/jquery.fancytree.*.js"
242242
"test/test-*.js"
243+
"demo/sample.js"
243244
]
244245
fix:
245246
options:
@@ -248,6 +249,7 @@ module.exports = (grunt) ->
248249
"src/jquery.fancytree.js"
249250
"src/jquery.fancytree.*.js"
250251
"test/test-*.js"
252+
"demo/sample.js"
251253
]
252254

253255
exec:

demo/sample-ext-columnview.html

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
<style type="text/css">
2222
table.fancytree-ext-columnview {
2323
border-collapse: collapse;
24-
width: 100%;
24+
width: 100%;
2525
}
26-
table.fancytree-container tbody tr td{
27-
max-width: 300px; /* width does not work */
26+
table.fancytree-container tbody tr:first-child td {
27+
height: 200px;
2828
}
2929
span.fancytree-node{
3030
white-space: nowrap; /* prevent long lines to wrap */
@@ -46,23 +46,28 @@
4646
span.selTag{
4747
border: 1px outset #dec;
4848
display: inline-block;
49-
padding: 0 5px;
49+
padding: 1px 3px;
5050
margin: 1px 5px;
5151
background-color: #dec;
5252
border-radius: 5px;
5353
cursor: pointer;
54+
vertical-align: bottom;
55+
position: relative;
5456
}
5557
span.selTag button.close{
5658
border: 1px solid transparent;
57-
border-radius: 4px;
59+
border-radius: 5px;
5860
padding: 0px 1px 2px 1px;
59-
margin-left: 8px;
61+
position: absolute;
62+
top: 0;
63+
right: 0;
6064
background-color: transparent;
6165
visibility: hidden;
6266
}
6367
span.selTag:hover button.close{
6468
border-color: gray;
6569
background-color: #f99;
70+
opacity: 0.8;
6671
visibility: visible;
6772
}
6873
</style>
@@ -76,7 +81,10 @@
7681
extensions: ["columnview"],
7782
checkbox: true,
7883
source: {
79-
url: "ajax-tree-plain.json"
84+
url: "ajax-tree-products.json"
85+
},
86+
init: function(event, data) {
87+
data.tree.findFirst("C64").setActive();
8088
},
8189
lazyLoad: function(event, data) {
8290
data.result = {url: "ajax-sub2.json"};
@@ -123,7 +131,10 @@ <h1>Example: 'columnview' extension</h1>
123131
Display tree data in a column view as known from Apple Macintosh / OSX.
124132
</p>
125133
<p>
126-
<b>Status</b>: experimental
134+
<b>Status</b>: experimental.
135+
<b>Details:</b>
136+
<a href="https://github.com/mar10/fancytree/wiki/ExtColumnView"
137+
target="_blank" class="external">ext-columnview</a>.
127138
</p>
128139
</div>
129140
<div>
@@ -133,15 +144,16 @@ <h1>Example: 'columnview' extension</h1>
133144
<!-- Add a <table> element where the tree should appear: -->
134145
<table id="columnview">
135146
<colgroup>
136-
<col width="300px"></col>
137-
<col width="300px"></col>
138-
<col width="300px"></col>
147+
<col width="33%"></col>
148+
<col width="33%"></col>
149+
<col width="33%"></col>
139150
</colgroup>
140151
<thead>
141152
<tr> <th>1</th> <th>2</th> <th>3</th> </tr>
142153
</thead>
143154
<tbody>
144-
<tr> <td>?</td> <td>?</td> <td>?</td> </tr>
155+
<tr> <td>?</td> <td>?</td> <td>?</td> </tr>
156+
<!-- The following rows are only used for the custom select badge functionality: -->
145157
<tr> <td id="tags" colspan="3">Selected nodes: </td> </tr>
146158
<tr> <td id="preview" colspan="3">preview</td> </tr>
147159
</tbody>

0 commit comments

Comments
 (0)