Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Show foldnode when prefetching #35

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 4 additions & 9 deletions src/TreeView/widget/TreeView/RenderNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,10 @@ define([

if (this.tree.expandall > this.depth) {
this.setCollapsed(false);
} else if (this.tree.prefetch == true) {
dojo.forEach(this.graphNode.getChildTypes(), function (type) {
if (!graphNode.children[type.index].knowsChildren) {
graphNode.ensureChildren(type, dojo.hitch(this, function () {
this.children[type.index].placeChildren();
this.children[type.index].updateFoldVisibility();
}));
}
}, this);
} else if (this.tree.prefetch){
// Expand and collaps to prefetch all children
this.setCollapsed(false);
this.setCollapsed(true);
}

},
Expand Down