(experimental)
resolved, when all patches have been applied
[ext-clones] Replace a refKey with a new one.
[ext-persist] Remove persistence cookies of the given type(s). Called like $("#tree").fancytree("getTree").clearCookies("active expanded focus selected");
[ext-filter] Reset the filter.
Return the number of nodes.
Write to browser console if debugLevel >= 2 (prepending tree name)
Expand (or collapse) all parent nodes.
Optional
flag: booleanOptional
options: Object[ext-filter] Dimm or hide whole branches.
count
[ext-filter] Dimm or hide whole branches.
count
[ext-filter] Dimm or hide nodes.
Optional
leavesOnly: booleancount
[ext-filter] Dimm or hide nodes.
Optional
leavesOnly: booleancount
Find all nodes that matches condition.
array of nodes (may be empty)
Find the next visible node that starts with match
, starting at startNode
and wrap-around at the end.
Optional
startNode: FancytreeNodematching node or null
Find the next visible node that starts with match
, starting at startNode
and wrap-around at the end.
Optional
startNode: FancytreeNodematching node or null
Generate INPUT elements that can be submitted with html forms. In selectMode 3 only the topmost selected nodes are considered.
Optional
selected: booleanOptional
active: booleanReturn the currently active node or null.
Return the first top level node if any (not the invisible root node).
Return node that has keyboard focus.
Optional
ifTreeHasFocus: boolean(default: false) (not yet implemented)
Return node with a given key or null if not found.
Optional
searchRoot: FancytreeNode(optional) only search below this node.
[ext-clones] Return all nodes with a given refKey (null if not found).
Optional
rootNode: FancytreeNodeoptionally restrict results to descendants of this node.
[ext-persist] Return persistence information from cookies Called like $("#tree").fancytree("getTree").getPersistData();
Return the invisible system root node.
Return an array of selected nodes.
Optional
stopOnParents: booleanonly return the topmost selected node (useful with selectMode 3)
Return true if the tree control has keyboard focus
Write to browser console if debugLevel >= 1 (prepending tree name)
[ext-edit] Check if any node in this tree in edit mode.
Make sure that a node with a given ID is loaded, by traversing - and loading - its parents. This method is ment for lazy hierarchies. A callback is executed for every node as we go.
one or more key paths (e.g. '/3/2_1/7')
callback(node, status) is called for every visited node ('loading', 'loaded', 'ok', 'error')
Make sure that a node with a given ID is loaded, by traversing - and loading - its parents. This method is ment for lazy hierarchies. A callback is executed for every node as we go.
a key path (e.g. '/3/2_1/7')
callback(node, status) is called for every visited node ('loading', 'loaded', 'ok', 'error')
Re-fire beforeActivate and activate events.
Reload tree from source and return a promise.
Optional
source: anyoptional new source (defaults to initial source data)
Render tree (i.e. create DOM elements for all top-level nodes).
Optional
force: booleancreate DOM elements, even is parent is collapsed (default = false)
Optional
deep: boolean(default = false)
Optional
flag: boolean(default = true)
Return all nodes as nested list of NodeData.
Optional
includeRoot: booleanReturns the hidden system root node (and its children) (default = false)
Optional
callback: (node: FancytreeNode) => voidCalled for every node
Call fn(node) for all nodes.
the callback function. Return false to stop iteration, return "skip" to skip this node and children only.
false, if the iterator was stopped.
Write warning to browser console (prepending tree info)
Activate node with a given key and fire focus and activate events. A previously activated node will be deactivated. If activeVisible option is set, all parents will be expanded as necessary. Pass key = false, to deactivate the current node only.