-
-
Notifications
You must be signed in to change notification settings - Fork 607
Martin@MBP edited this page Jan 17, 2014
·
4 revisions
Fancytree FAQ (Frequently Asked Questions)
A node may be active, selected, focused, and/or hovered.
These states are independent, so one node can have all, some, or none of these
states at the same time:
- hovered
Only one (or no) node can be active at any given time.
A nodes becomes hovered, when the mouse pointer rests over it. - focused
Only one (or no) node can be focused at any given time.
A nodes becomes focused, when the user presses TAB to enter the tree, or by pressing UP / DOWN keys.
Note: if theautoActivate
option is set, a node will automatically activated, when it receives the focus. (Use Ctrl-UP / Ctrl-DOWN keys to focus only.) - active
Only one (or no) node can be active at any given time.
A nodes becomes active by a mouse click or keyboard navigation, pressing SPACE on a focused node (or using UP, DOWN, when theautoActivate
option is set).
A typical use case would be to use the tree for navigation, i.e. to display details of the active node in a separate pane. - selected
Only one (or no) node can be selected at any given time.
However in selectMode 2 or 3, multiple nodes may be selected inside one tree.
A use case would be to allow the user to select several elements out of a set of hierarchical options.
(Other statuses include 'expanded', 'lazy', 'disabled', ...)
See 'What statuses can a node have?'
Fancytree is a complete rewrite that also led to some bigger (and some subtle) changes in the API. I felt that this could cause to some confusion, when googling for solutions or looking at code samples in Stackoverflow that refer to older versions of Dynatree.
Documentation Home - Project Page - Copyright (c) 2008-2022, Martin Wendt (https://wwWendt.de)