--- title: "Perspective - Accordion Scripting" --- # Perspective - Accordion Scripting > This page details the component-specific events and functions available for Perspective's [Accordion](perspective-accordion.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. ### onItemExpanded This event is fired when an item is expanded. |Object Path|Type|Description| |--|--|--| |event.index |Numeric |The index of the item that was expanded. | ### onItemCollapsed This event is fired when an item is expanded. |Object Path|Type|Description| |--|--|--| |event.index |Numeric |The index of the item that was collapsed. | ## Component Functions This component does not have component functions associated with it. ## Extension Functions This component does not have extension functions associated with it.