Skip to main content
Version: 2027.02 Beta
View as Markdown

Perspective - Tree Scripting

This page details the component-specific events and functions available for Perspective's Tree component. Right-click on the component or select Components from the Designer menubar to access the Configure Events and Configure Scripts popups.

Component Events​

The Perspective Event Types Reference page describes all the possible component event types for Perspective components.

onItemClicked​

Fires whenever a node is clicked.

Object PathTypeDescription
event.dataAnyThe value of the contextual 'data' object on the clicked node.
event.itemPathListA list containing the item indexes leading to the item that was clicked.
event.labelStringThe displayed text on the clicked item.