Releases: mar10/fancytree
Releases · mar10/fancytree
v2.27.0
- BREAKING CHANGES:
node.type
is now a first-class property of FancytreeNode.
Node data{..., type: "foo"}
is now available asnode.type
(before:node.data.type
).- The properties
tree.types
andtree.columns
have been added to Fancytree.
If passed with source data, they are now available directly instead of
tree.data.types
ortree.data.columns
.
- Support patterns for node types:
- The properties
node.type
andtree.types
are recommended to implement node-type
specific configuration (details). - Event
data
argument containstypeInfo == tree.types[node.type]
.
- The properties
- Improved ext-glyph:
- [Added] support for ligature icons (e.g. material icons).
- [Added]
icon
option can now return a dict to create a ligature icon.
- Improved tree.loadKeyPath():
- [Added] support for a custom path segment matcher.
This allows to have key paths with segments other thannode.key
. - [Improved] the returned deferred promise now triggers
progress()
events which can
be used instead of the callback.
- [Added] support for a custom path segment matcher.
- The property
tree.columns
was added to Fancytree. Currently only reserved as
recommended pattern to pass global meta-data for ext-table. - [Added] ext-edit: new trigger mode
clickActive
for optiontriggerStart: [...]
. - [Added] #798 Tooltip support for icons (dynamic option
iconTooltip
). - [Added] #808 Pass custom storage providers to ext-persist.
- [Improved] ext-table no longer needs empty tbody/tr if thead is present.
- [Fixed] #796 UMD requirements for node/CommonJS
- [Fixed] #803 jquery.fancytree.ui-deps.js does not override existing widgets.
- [Fixed] #815
<mark>
element missing in filtered nodes (minified bundle, IE 11). - [Fixed] #816 findNextNode() doesn't set default for 'startNode' argument.
- [Added] Material Design demo
- [Added] Demo for Fancytree inside a jquery-confirm popup
- [Changed] String representation is now
"FancytreeNode@_4[title='My name']"
- [DEPRECATED]
tree.clearCookies()
. Usetree.clearData()
instead.
v2.26.0
- BREAKING CHANGES:
- [Fixed] #792 postProcess is now also called for non-Ajax sources
- [Improved] LESS now compiles with webpack
- [Added] #791 ext-glyph support for radio buttons
- [Added] Color definitions for skin-awesome (taken from skin-lion)
- [Fixed]
$.ui.fancytree.getNode()
for ES6 environments - [Fixed] #789 Wrong node is activated in IE, when clicking in unfocused container
v2.25.0
- BREAKING CHANGES:
- The
dist/src/
folder was renamed todist/modules
. - Some directories like
demo/
are no longer part of the npm install.
- The
- Improved Module Support and Distribution
- The
dist/
folder now includes amodules/
directory with fancytree core
and all extensions. - All modules have UMD wrappers with defined dependencies.
- Internal jQuery UI dependencies are deployed as module and implicitly loaded.
jquery.fancytree/dist/modules/jquery.fancytree
is defined as
package main module, so Fancytree can be included using a simple
fancytree = require('jquery.fancytree')
.
See the docs for details.- All modules now return the
$.ui.fancytree object. - [Added] new static method
$.ui.fancytree.createTree(elem, opts)
- The
- [Added] Source map files for
jquery.fancytree-all-deps.min.js
- [Added] New extension ext-fixed (work-in-progress, experimental)
- [Fixed] #767: Input inside table head not working
- [Fixed] #768: Can't use keyboard to select nodes when
checkbox
option is false - [Fixed] #782: wide extension - padding is off when checkbox option is changed
- [Fixed] #787: Fix getEventTarget() for custom icons
v2.24.0
- [Added] ext-glyph option
preset
(making themap
option optional) - [Fixed] #695: List AMD dependency on jQuery UI
- [Fixed] #735: Trying to set root node selected throws an error
- [Fixed] Drop marker for ext-glyph + ext-dnd5
- [Fixed] #740: Filtering must not consider escaped html entities
- [Fixed] #741: Passing an empty string ("") as filter calls clearFilter()
- [Fixed] #761: dnd5 throws exception when tree is empty
- [Fixed] #748: Drag start should not activate a node
- [Fixed] #764: FancyTree filter breaks links
- Updated jsdoc to 3.5
v2.23.0
-
The external dependency on jQuery UI was removed.
A new libraryjquery.fancytree-all-deps.min.js
is now added to the
distribution. It includes all dependencies on jQuery UI, so the only
remaining external dependency is jQuery.
Continue to usejquery.fancytree-all.min.js
if jQuery UI is already
included anyway. -
Refactored the select behavior
details:- [Added] Allow control of selection status propagation with new options:
unselectable
,unselectableIgnore
,unselectableStatus
. - [Added] node option
radiogroup
enables single-select for child nodes - [Added] option
opts.noEvents
tosetSelected(flag, opts)
- [Improved] Option 'checkbox' can have the string value "radio" (only visual
effect)
- [Added] Allow control of selection status propagation with new options:
-
BREAKING CHANGES:
- The
hideCheckbox
option was removed. Usecheckbox: false
instead.
Note that the<li class='hideCheckbox'>
is still parsed from input
HTML and converted accordingly. - The optional modifier class
<div class='fancytree-radio'>
was removed.
This class was used on the container to turn all checkbox items into
radio buttons.
Instead, this class is now added to<span class="fancytree-checkbox fancytree-radio">
.
Use thetree.checkox: "radio"
option to activate this for the whole tree. - The callback signature for the
tree.tooltip
option has changed to
tooltip(event, data)
- The
-
[Improved]
aria
option is now on by default -
Use the new dynamic options pattern for
checkbox
,icon
,tooltip
,unselectable
,unselectableIgnore
,
unselectableStatus
.
See also dynamic options. -
[Added] New method
node.visitSiblings()
-
[Added] #730 ext-persist option
expandOpts
is passed to setExpanded()
Allows to suppress animation or event generation.