Class AccordionItem
Item used inside an Accordion element.
Implements
Inherited Members
Namespace: Unity.AppUI.UI
Assembly: Unity.AppUI.dll
Syntax
public class AccordionItem : BaseVisualElement, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle, IContextOverrideElement, IAdditionalDataHolder, INotifyValueChanged<bool>
Constructors
AccordionItem()
Default constructor.
Declaration
public AccordionItem()
Fields
contentParentUssClassName
The AccordionItem content parent styling class.
Declaration
public const string contentParentUssClassName = "appui-accordionitem__content-parent"
Field Value
Type | Description |
---|---|
string |
contentUssClassName
The AccordionItem content styling class.
Declaration
public const string contentUssClassName = "appui-accordionitem__content"
Field Value
Type | Description |
---|---|
string |
headerTextUssClassName
The AccordionItem headertext styling class.
Declaration
public const string headerTextUssClassName = "appui-accordionitem__headertext"
Field Value
Type | Description |
---|---|
string |
headerUssClassName
The AccordionItem header styling class.
Declaration
public const string headerUssClassName = "appui-accordionitem__header"
Field Value
Type | Description |
---|---|
string |
headingUssClassName
The AccordionItem heading styling class.
Declaration
public const string headingUssClassName = "appui-accordionitem__heading"
Field Value
Type | Description |
---|---|
string |
indicatorPosUssClassName
The AccordionItem indicator position styling class.
Declaration
public const string indicatorPosUssClassName = "appui-accordionitem--indicator-"
Field Value
Type | Description |
---|---|
string |
indicatorUssClassName
The AccordionItem indicator styling class.
Declaration
public const string indicatorUssClassName = "appui-accordionitem__indicator"
Field Value
Type | Description |
---|---|
string |
trailingContainerUssClassName
The AccordionItem trailing container styling class.
Declaration
public const string trailingContainerUssClassName = "appui-accordionitem__trailing-container"
Field Value
Type | Description |
---|---|
string |
ussClassName
The AccordionItem main styling class.
Declaration
public const string ussClassName = "appui-accordionitem"
Field Value
Type | Description |
---|---|
string |
Properties
contentContainer
The content container of the AccordionItem.
Declaration
public override VisualElement contentContainer { get; }
Property Value
Type | Description |
---|---|
VisualElement |
Overrides
indicatorPosition
The position of the indicator.
Declaration
[Tooltip("The position of the indicator.")]
public FlexPosition indicatorPosition { get; set; }
Property Value
Type | Description |
---|---|
FlexPosition |
title
The title of the AccordionItem.
Declaration
[Tooltip("The title of the AccordionItem.")]
public string title { get; set; }
Property Value
Type | Description |
---|---|
string |
trailingContainer
The header's trailing container of the AccordionItem.
Declaration
public VisualElement trailingContainer { get; }
Property Value
Type | Description |
---|---|
VisualElement |
trailingContentTemplate
The header's trailing container template of the AccordionItem.
Declaration
public VisualTreeAsset trailingContentTemplate { get; set; }
Property Value
Type | Description |
---|---|
VisualTreeAsset |
value
The value of the item, which represents its open state.
Declaration
[Tooltip("The value of the item, which represents its open state.")]
public bool value { get; set; }
Property Value
Type | Description |
---|---|
bool |
Methods
GetIndicatorPosUssClassName(FlexPosition)
Declaration
public static string GetIndicatorPosUssClassName(FlexPosition enumValue)
Parameters
Type | Name | Description |
---|---|---|
FlexPosition | enumValue |
Returns
Type | Description |
---|---|
string |
SetValueWithoutNotify(bool)
Set the open state of the item without triggering any event.
Declaration
public void SetValueWithoutNotify(bool newValue)
Parameters
Type | Name | Description |
---|---|---|
bool | newValue | The new open state of the item. |