Skip to content

Releases: cheton/infinite-tree

v1.18.0

14 Jun 05:16
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.17.1...v1.18.0

v1.17.1

01 Jul 07:08
Compare
Choose a tag to compare

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

Full Changelog: v1.17.0...v1.17.1

v1.17.0

21 Nov 02:06
Compare
Choose a tag to compare

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

Full Changelog: v1.16.2...v1.17.0

v1.16.2

06 Jul 02:50
Compare
Choose a tag to compare

Fix clusterHeight() to use most current state information (261b2db, PR #34 by @mudcube)

v1.16.1

01 Jun 17:34
Compare
Choose a tag to compare

Fixes an issue that could cause the root node to stay in the close state when removing child nodes (11f30fa, #32)

v1.16.0

24 Mar 04:16
Compare
Choose a tag to compare

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);
    }
});

v1.15.0

12 Feb 09:35
Compare
Choose a tag to compare

Adds support for toggling between checked and unchecked state (02226cc, #22)

See the usage at https://github.com/cheton/infinite-tree#creating-tree-nodes-with-checkboxes

v1.14.9

31 Jan 14:26
Compare
Choose a tag to compare

closeNode too aggressive in removing currently opened nodes (7c85187, PR #26 by @acierto)

v1.14.8

31 Jan 00:59
Compare
Choose a tag to compare
  • Node with loadOnDemand which has 0 children doesn't update the state with openNodes (2bf9482, PR #25 by @acierto)
  • Ensure uniqueness for open nodes (6456cbf)

v1.14.7

30 Jan 14:10
Compare
Choose a tag to compare

Fixed the regression in addChildNodes (0ca1dc1, PR #24 by @acierto)