Class Accordion
Accordion UI element.
Implements
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: Unity.AppUI.dll
Syntax
public class Accordion : BaseVisualElement, IEventHandler, IVisualElementScheduler, IExperimentalFeatures, ITransitionAnimations, ITransform, IResolvedStyle, IContextOverrideElement, IAdditionalDataHolder
Constructors
Accordion()
Default constructor.
Declaration
public Accordion()
Fields
ussClassName
The Accordion main styling class.
Declaration
public const string ussClassName = "appui-accordion"
Field Value
Type | Description |
---|---|
string |
Properties
isExclusive
The behavior of the Accordion when multiple items are open.
Declaration
[Tooltip("If true, a maximum of one item can be open at a time.")]
public bool isExclusive { get; set; }
Property Value
Type | Description |
---|---|
bool |
Remarks
If true, a maximum of one item can be open at a time.