Ga naar inhoud

TP2WJsTree

TP2WJsTree is a Delphi wrapper for jsTree, the best tree view for the web.

Properties

property description
Items One or more TP2WJsTreeNodes
Options Please see: TP2WJsTreeOptions

Methods

method description
SelectAll select all nodes in this TP2WJsTree
DeselectAll deselect all selected nodes

Events

event description
OnChanged Triggered when selection changes. This event includes the following arguments:
node the current node, including details like ID, text, icon, etc.
selected an array of selected node IDs
action the action that caused the selection to change, possible values are:
DeleteNode triggered when a node is deleted
DeselectAll triggered when all nodes are deselected
DeselectNode triggered when a node is deselected
LoadNode triggered after a node is loaded
SelectAll triggered when all nodes are selected
SelectNode triggered when an node is deselected

TP2WJsTreeNode

property description
Id the ID of this node
ParentId the ID of the parent node
Text the text value of this node
Icon the icon for this node. can be a path to an icon or a CSS class name. if using an image that is in the current directory use a ./ prefix, otherwise it will be detected as a CSS class name.
State the state of this node. possible values are:
Opened the node is expanded (not collapsed)
Disabled the node is grayed out

TP2WJsTreeOptions

option description
Animation this TP2WJsTree will animate when a node is opened/closed
Checkboxes show a checkbox icon before every node
MultiSelect more than one node can get selected