Options for misc extensions - see docs for typings
Optional
activeMake sure that the active node is always visible, i.e. its parents are expanded (default: true).
Optional
ajaxDefault options for ajax requests.
false: Append random '_' argument to the request url to prevent caching.
Default 'json' -> Expect json format and pass json object to callbacks.
HTTP Method (default: 'GET')
Optional
aria(default: false) Add WAI-ARIA attributes to markup
Optional
autoActivate a node when focused with the keyboard (default: true)
Optional
autoAutomatically collapse all siblings, when a node is expanded (default: false).
Optional
autoScroll node into visible area, when focused by keyboard (default: false).
Optional
checkboxDisplay checkboxes to allow selection (default: false)
Optional
clickDefines what happens, when the user click a folder node. (default: activate_dblclick_expands)
Optional
debug0..4 (null: use global setting $.ui.fancytree.debugInfo)
Optional
defaultcallback(node) is called for new nodes without a key. Must return a new unique key. (default null: generates default keys like that: "_" + counter)
Optional
dnd5Optional
enableAccept passing ajax data in a property named d
(default: true).
Optional
enableEnable titles (default: false)
Optional
extensionsList of active extensions (default: [])
Optional
filterOptional
focusSet focus when node is checked by a mouse click (default: false)
Optional
generateAdd id="..."
to node markup (default: true).
Optional
iconNode icon url, if only filename, please use imagePath to set the path
Optional
idPrefix (default: "ft_")
Optional
imagePath to a folder containing icons (default: null, using 'skin/' subdirectory).
Optional
keyboardSupport keyboard navigation (default: true).
Optional
key(default: "/")
Optional
min2: top-level nodes are not collapsible (default: 1)
Optional
quicksearchnavigate to next node by typing the first letters (default: false)
Optional
rtlRight to left mode (default: false)
Optional
scrolloptional margins for node.scrollIntoView() (default: {top: 0, bottom: 0})
Optional
scrollscrollable container for node.scrollIntoView() (default: $container)
Optional
selectdefault: multi_hier
Optional
sourceUsed to Initialize the tree.
Optional
stringsTranslation table
Optional
tabbableAdd tabindex='0' to container, so tree can be reached using TAB
Optional
tableOptional
titlesAdd tabindex='0' to node title span, so it can receive keyboard focus
Optional
toggleAnimation options, false:off (default: { effect: "blind", options: {direction: "vertical", scale: "box"}, duration: 200 })
Optional
tooltipTooltips
Optional
unselectable(dynamic Option)Prevent (de-)selection using mouse or keyboard.
Optional
unselectable(dynamic Option)Ignore this node when calculating the partsel status of parent nodes in selectMode 3 propagation.
Optional
unselectable(dynamic Option)Use this as constant selected value (overriding selectMode 3 propagation).
Optional
activateOptional
beforeReturn false to prevent default processing
Optional
beforeReturn false
to prevent default processing
Optional
beforeReturn false
to prevent default processing
Optional
blurOptional
blurOptional
clickdata.node
was clicked. data.targetType
contains the region ("title", "expander", ...). Return false
to prevent default processing, i.e. activating, etc.
Optional
collapseOptional
createWidget was created (called only once, even if re-initialized).
Optional
createAllow tweaking and binding, after node was created for the first time (NOTE: this event is only available as callback, but not for bind())
Optional
dblclickdata.node
was double-clicked. data.targetType
contains the region ("title", "expander", ...). Return false
to prevent default processing, i.e. expanding, etc.
Optional
deactivateOptional
expandOptional
focusOptional
focusOptional
initOptional
keydowndata.node
received key. event.which
contains the key. Return false
to prevent default processing, i.e. navigation. Call data.result = "preventNav";
to prevent navigation but still allow default handling inside embedded input controls.
Optional
keypressOptional
lazydata.node
is a lazy node that is expanded for the first time. The new child data must be returned in the data.result
property (see source
option for available formats).
Optional
loadNode data was loaded, i.e. node.nodeLoadChildren()
finished
Optional
loadA load error occured. Return false
to prevent default processing.
Optional
postOptional
removedata.node
was removed (NOTE: this event is only available as callback, but not for bind())
Optional
renderOptional
renderAllow tweaking after node state was rendered (NOTE: this event is only available as callback, but not for bind())
Optional
renderAllow replacing the <span class='fancytree-title'>
markup (NOTE: this event is only available as callback, but not for bind())
Optional
restoreext-persist has expanded, selected, and activated the previous state
Optional
select
The
this
context of any event function is set to tree's the HTMLDivElement