diff --git a/_includes/js/tree.html b/_includes/js/tree.html index 56906a998..9f8640f19 100644 --- a/_includes/js/tree.html +++ b/_includes/js/tree.html @@ -77,7 +77,10 @@

Methods

deprecated Populate the passed in element as if it were a new copy of the instantiated tree. If you call this on an already instantiated tree, it will append all of the items to the tree again. You probably don't want to call this. It will most likely become a private function in the future.
.tree('render')
-
caution Currently a short-cut to .tree('populate', $el) but in the future may behave as a refresh();. At that point this may be deprecated in favor of an actual refresh() function.
+
Calls datasource callback for entire tree. Caution: Does not remove current top-level tree nodes.
+ +
.tree('refreshFolder', $('#folderId'))
+
Removes children and calls datasource callback for specified folder. Does not update data and attributes of the specified folder.
.tree('collapse')
deprecated Same as .tree('closeAll')
@@ -199,44 +202,51 @@

Events

- - selected.fu.tree - Fires when a user selects an item or folder. Returns an object containing an array of the selected items' jQuery data and the jQuery data of the triggering item. { selected: [array], target: [object] } - - - deselected.fu.tree - Fires when a user deselects an item or folder. Returns an object containing an array of the selected items' jQuery data and the jQuery data of the triggering item. { selected: [array], target: [object] } - - - loaded.fu.tree - Fires when sub-content has been is loaded. Returns the jQuery element of the folder loaded. - - - updated.fu.tree - Fires after selected.fu.tree and deselected.fu.tree events. Returns an object containing an array of selected items' jQuery data, the triggering jQuery element and the event type. { selected: [array], item: [object], eventType: [string] } - - - disclosedFolder.fu.tree - Fires when a user opens a folder. Returns an object containing the jQuery data of the opened folder. - - - closed.fu.tree - Fires when a user closes a folder. Returns an object containing the jQuery data of the closed folder. - - - closedAll.fu.tree - Fires when all folders have finished closing. Returns an object containing an array of closed folders' jQuery data and the tree's jQuery element. The length of reportedClosed will provide the number of folders closed. { reportedClosed: [array], tree: [$element] } - - - disclosedVisible.fu.tree - Fires when all visible folders have disclosed/opened. Returns an object containing an array of disclosed folders' jQuery data and the tree's jQuery element. The length of reportedOpened will provide the number of folders opened. { reportedOpened: [array], tree: [$element] } - - exceededDisclosuresLimit.fu.tree - Fires when tree halts disclosing due to hitting discloserLimit cap. Returns an object containing { disclosures: [number], tree: [$element] } - - - disclosedAll.fu.tree - Fires when all folders have disclosed. It will not fire if tree stops disclosing due to hitting discloserLimit cap. Returns an object containing { disclosures: [number], tree: [$element] } + + selected.fu.tree + Fires when a user selects an item or folder. Returns an object containing an array of the selected items' jQuery data and the jQuery data of the triggering item. { selected: [array], target: [object] } + + + deselected.fu.tree + Fires when a user deselects an item or folder. Returns an object containing an array of the selected items' jQuery data and the jQuery data of the triggering item. { selected: [array], target: [object] } + + + loaded.fu.tree + Fires when sub-content has been is loaded. Returns the jQuery element of the folder loaded. + + + updated.fu.tree + Fires after selected.fu.tree and deselected.fu.tree events. Returns an object containing an array of selected items' jQuery data, the triggering jQuery element and the event type. { selected: [array], item: [object], eventType: [string] } + + + disclosedFolder.fu.tree + Fires when a user opens a folder. Returns an object containing the jQuery data of the opened folder. + + + refreshedFolder.fu.tree + Fires when a user refreshes a folder. Returns an object containing the jQuery data of the opened folder. + + + closed.fu.tree + Fires when a user closes a folder. Returns an object containing the jQuery data of the closed folder. + + + closedAll.fu.tree + Fires when all folders have finished closing. Returns an object containing an array of closed folders' jQuery data and the tree's jQuery element. The length of reportedClosed will provide the number of folders closed. { reportedClosed: [array], tree: [$element] } + + + disclosedVisible.fu.tree + Fires when all visible folders have disclosed/opened. Returns an object containing an array of disclosed folders' jQuery data and the tree's jQuery element. The length of reportedOpened will provide the number of folders opened. { reportedOpened: [array], tree: [$element] } + + + exceededDisclosuresLimit.fu.tree + Fires when tree halts disclosing due to hitting discloserLimit cap. Returns an object containing { disclosures: [number], tree: [$element] } + + + disclosedAll.fu.tree + Fires when all folders have disclosed. It will not fire if tree stops disclosing due to hitting discloserLimit cap. Returns an object containing { disclosures: [number], tree: [$element] } + +