Component:Expander: Difference between revisions

From Resonite Wiki
Filled in this component page.
Small corrections.
 
Line 18: Line 18:
== Usage ==
== Usage ==


This component is combined with the [[Component:Button|Button]] to activate this expander component. This component is also combined with the [[Component:TextExpandIndicator|TextExpandIndicator]] component to drive the text and show the user that this expander has expanded, collapsed, or is empty.
This component is combined with the [[Component:Button|Button]] component to trigger this expander component. This component is also combined with the [[Component:TextExpandIndicator|TextExpandIndicator]] component to drive the text and show the user that this expander has expanded, collapsed, or is empty.


<!--T:5-->
<!--T:5-->

Latest revision as of 06:09, 22 July 2024

Component image 
Expander component as seen in the Scene Inspector


The Expander component is an intractable UIX element that expands a section called the SectionRoot under itself. The SectionRoot's active state will toggle when that expander is triggered, expanding it under the Slot the expander is on. This can be seen on the Scene Inspector.

Fields
Name Type Description
persistent Bool Determines whether or not this item will be saved to the server.
UpdateOrder Int Controls the order in which this component is updated.
Enabled Bool Controls whether or not this component is enabled.
SectionRoot Slot The slot to expend with, by activating the slot that is referenced when toggled.

Usage

This component is combined with the Button component to trigger this expander component. This component is also combined with the TextExpandIndicator component to drive the text and show the user that this expander has expanded, collapsed, or is empty.

Examples

Related Components