Class AccordionItem
Item used inside an Accordion element.
Implements
INotifyValueChanged<bool>
Inherited Members
VisualElement.ExecuteDefaultAction(EventBase)
VisualElement.Focus()
VisualElement.Overlaps(Rect)
VisualElement.ToString()
VisualElement.GetFirstOfType<T>()
VisualElement.GetFirstAncestorOfType<T>()
VisualElement.canGrabFocus
VisualElement.focusController
VisualElement.cacheAsBitmap
CallbackEventHandler.RegisterCallback<TEventType>(EventCallback<TEventType>, TrickleDown)
CallbackEventHandler.RegisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType>, TUserArgsType, TrickleDown)
CallbackEventHandler.UnregisterCallback<TEventType>(EventCallback<TEventType>, TrickleDown)
CallbackEventHandler.UnregisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType>, TrickleDown)
Namespace: Unity.AppUI.UI
Assembly: solution.dll
Syntax
public class AccordionItem : BaseVisualElement, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle, IContextOverrideElement, INotifyValueChanged<bool>
Constructors
AccordionItem()
Default constructor.
Declaration
public AccordionItem()
Fields
contentParentUssClassName
The AccordionItem content parent styling class.
Declaration
public static readonly string contentParentUssClassName
Field Value
Type | Description |
---|---|
string |
contentUssClassName
The AccordionItem content styling class.
Declaration
public static readonly string contentUssClassName
Field Value
Type | Description |
---|---|
string |
headerTextUssClassName
The AccordionItem headertext styling class.
Declaration
public static readonly string headerTextUssClassName
Field Value
Type | Description |
---|---|
string |
headerUssClassName
The AccordionItem header styling class.
Declaration
public static readonly string headerUssClassName
Field Value
Type | Description |
---|---|
string |
headingUssClassName
The AccordionItem heading styling class.
Declaration
public static readonly string headingUssClassName
Field Value
Type | Description |
---|---|
string |
indicatorUssClassName
The AccordionItem indicator styling class.
Declaration
public static readonly string indicatorUssClassName
Field Value
Type | Description |
---|---|
string |
trailingContainerUssClassName
The AccordionItem trailing container styling class.
Declaration
public static readonly string trailingContainerUssClassName
Field Value
Type | Description |
---|---|
string |
ussClassName
The AccordionItem main styling class.
Declaration
public static readonly string ussClassName
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
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
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. |
Implements
UnityEngine.UIElements.INotifyValueChanged<T>