Options for misc extensions - see docs for typings
OptionalactiveMake sure that the active node is always visible, i.e. its parents are expanded (default: true).
OptionalajaxDefault 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')
Optionalaria(default: false) Add WAI-ARIA attributes to markup
OptionalautoActivate a node when focused with the keyboard (default: true)
OptionalautoAutomatically collapse all siblings, when a node is expanded (default: false).
OptionalautoScroll node into visible area, when focused by keyboard (default: false).
OptionalcheckboxDisplay checkboxes to allow selection (default: false)
OptionalclickDefines what happens, when the user click a folder node. (default: activate_dblclick_expands)
Optionaldebug0..4 (null: use global setting $.ui.fancytree.debugInfo)
Optionaldefaultcallback(node) is called for new nodes without a key. Must return a new unique key. (default null: generates default keys like that: "_" + counter)
Optionaldnd5OptionalenableAccept passing ajax data in a property named d (default: true).
OptionalenableEnable titles (default: false)
OptionalextensionsList of active extensions (default: [])
OptionalfilterOptionalfocusSet focus when node is checked by a mouse click (default: false)
OptionalgenerateAdd id="..." to node markup (default: true).
OptionaliconNode icon url, if only filename, please use imagePath to set the path
OptionalidPrefix (default: "ft_")
OptionalimagePath to a folder containing icons (default: null, using 'skin/' subdirectory).
OptionalkeyboardSupport keyboard navigation (default: true).
Optionalkey(default: "/")
Optionalmin2: top-level nodes are not collapsible (default: 1)
Optionalquicksearchnavigate to next node by typing the first letters (default: false)
OptionalrtlRight to left mode (default: false)
Optionalscrolloptional margins for node.scrollIntoView() (default: {top: 0, bottom: 0})
Optionalscrollscrollable container for node.scrollIntoView() (default: $container)
Optionalselectdefault: multi_hier
OptionalsourceUsed to Initialize the tree.
OptionalstringsTranslation table
OptionaltabbableAdd tabindex='0' to container, so tree can be reached using TAB
OptionaltableOptionaltitlesAdd tabindex='0' to node title span, so it can receive keyboard focus
OptionaltoggleAnimation options, false:off (default: { effect: "blind", options: {direction: "vertical", scale: "box"}, duration: 200 })
OptionaltooltipTooltips
Optionalunselectable(dynamic Option)Prevent (de-)selection using mouse or keyboard.
Optionalunselectable(dynamic Option)Ignore this node when calculating the partsel status of parent nodes in selectMode 3 propagation.
Optionalunselectable(dynamic Option)Use this as constant selected value (overriding selectMode 3 propagation).
OptionalactivateOptionalbeforeReturn false to prevent default processing
OptionalbeforeReturn false to prevent default processing
OptionalbeforeReturn false to prevent default processing
OptionalblurOptionalblurOptionalclickdata.node was clicked. data.targetType contains the region ("title", "expander", ...). Return false to prevent default processing, i.e. activating, etc.
OptionalcollapseOptionalcreateWidget was created (called only once, even if re-initialized).
OptionalcreateAllow tweaking and binding, after node was created for the first time (NOTE: this event is only available as callback, but not for bind())
Optionaldblclickdata.node was double-clicked. data.targetType contains the region ("title", "expander", ...). Return false to prevent default processing, i.e. expanding, etc.
OptionaldeactivateOptionalexpandOptionalfocusOptionalfocusOptionalinitOptionalkeydowndata.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.
OptionalkeypressOptionallazydata.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).
OptionalloadNode data was loaded, i.e. node.nodeLoadChildren() finished
OptionalloadA load error occured. Return false to prevent default processing.
OptionalpostOptionalremovedata.node was removed (NOTE: this event is only available as callback, but not for bind())
OptionalrenderOptionalrenderAllow tweaking after node state was rendered (NOTE: this event is only available as callback, but not for bind())
OptionalrenderAllow replacing the <span class='fancytree-title'> markup (NOTE: this event is only available as callback, but not for bind())
Optionalrestoreext-persist has expanded, selected, and activated the previous state
Optionalselect
The
thiscontext of any event function is set to tree's the HTMLDivElement