--- title: "Perspective - Menu Tree Scripting" --- # Perspective - Menu Tree Scripting > This page details the component-specific events and functions available for Perspective's [Menu Tree](perspective-menu-tree.md) 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](appendix/reference-pages/perspective-event-types-reference.md) page describes all the possible component event types for Perspective components. ### onItemClicked Fired when an item is selected. #### event.enabled * Object Path * event.enabled * Type * Boolean * Description * Whether the item interacted with is enabled. #### event.label * Object Path * event.label * Type * String * Description * Text to display for this option. #### event.path * Object Path * event.label * Type * List * Description * A list containing the item indexes leading to the item that was clicked. #### event.target * Object Path * event.target * Type * String * Description * A URL (external) or a mounted path to a page. ## Component Functions This component does not have component functions associated with it. ## Extension Functions This component does not have extension functions associated with it.