Releases: cheton/infinite-tree
Releases · cheton/infinite-tree
v1.18.0
What's Changed
- Fix item height rounding errors by @JZacaroli in #73
Full Changelog: v1.17.1...v1.18.0
v1.17.1
What's Changed
- fix: add the missing dependency of events by @rorry121 in #64
- fix: fix scrollToNode function by renaming "clusterize-extra-row" to "infinite-tree-extra-row" by @JZacaroli in #63
New Contributors
- @rorry121 made their first contribution in #64
- @JZacaroli made their first contribution in #63
Full Changelog: v1.17.0...v1.17.1
v1.17.0
What's Changed
- Clean up pedantic console warnings in IE11 by @mikeprimm in #36
- Update examples to work properly with IE11 by @mikeprimm in #37
- Upgrade to Babel 7 and Webpack 4 by @cheton in #50
- Fixed the linter & tests by @asheshv in #53
- Give user more control on number of rows to be rendered at a time by @asheshv in #54
- chore: update flattree dependency version to
0.11.1
by @FoolHen in #60 - feat: remove array items without consuming extra memory by @cheton in #59
New Contributors
- @mikeprimm made their first contribution in #36
- @cheton made their first contribution in #50
- @asheshv made their first contribution in #53
- @FoolHen made their first contribution in #60
Full Changelog: v1.16.2...v1.17.0
v1.16.2
v1.16.1
v1.16.0
Use a custom shouldLoadNodes function to return a boolean value to determine whether to load nodes on demand (07cec31, #30)
var tree = new InfiniteTree({
el: document.querySelector('#tree'),
data: [
{ // node
id: '<unique-node-id>', // Required
name: 'Node 0',
loadNodes: true
}
],
shouldLoadNodes: function(parentNode) {
return !parentNode.hasChildren() && parentNode.loadNodes;
},
loadNodes: function(parentNode, next) {
var nodes = [
{
id: 'node1',
name: 'Node 1'
},
{
id: 'node2',
name: 'Node 2'
}
];
setTimeout(function() {
next(null, nodes, function() {
// Completed
});
}, 1000);
}
});