Class DropdownItem
Dropdown item 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 DropdownItem : BaseVisualElement, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle, IContextOverrideElement, IAdditionalDataHolder
Constructors
DropdownItem()
Constructor.
Declaration
public DropdownItem()
Fields
checkmarkUssClassName
The Dropdown item checkmark styling class.
Declaration
public const string checkmarkUssClassName = "appui-dropdown-item__checkmark"
Field Value
Type | Description |
---|---|
string |
iconUssClassName
The Dropdown item icon styling class.
Declaration
public const string iconUssClassName = "appui-dropdown-item__icon"
Field Value
Type | Description |
---|---|
string |
labelUssClassName
The Dropdown item label styling class.
Declaration
public const string labelUssClassName = "appui-dropdown-item__label"
Field Value
Type | Description |
---|---|
string |
ussClassName
The Dropdown item main styling class.
Declaration
public const string ussClassName = "appui-dropdown-item"
Field Value
Type | Description |
---|---|
string |
Properties
icon
The Dropdown item icon.
Declaration
public string icon { get; set; }
Property Value
Type | Description |
---|---|
string |
label
The Dropdown label text.
Declaration
public string label { get; set; }
Property Value
Type | Description |
---|---|
string |
labelElement
The Dropdown item label.
Declaration
public LocalizedTextElement labelElement { get; }
Property Value
Type | Description |
---|---|
LocalizedTextElement |