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: solution.dll
Syntax
public class DropdownItem : BaseVisualElement, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle, IContextOverrideElement
Constructors
DropdownItem()
Constructor.
Declaration
public DropdownItem()
Fields
checkmarkUssClassName
The Dropdown item checkmark styling class.
Declaration
public static readonly string checkmarkUssClassName
Field Value
Type | Description |
---|---|
string |
iconUssClassName
The Dropdown item icon styling class.
Declaration
public static readonly string iconUssClassName
Field Value
Type | Description |
---|---|
string |
labelUssClassName
The Dropdown item label styling class.
Declaration
public static readonly string labelUssClassName
Field Value
Type | Description |
---|---|
string |
ussClassName
The Dropdown item main styling class.
Declaration
public static readonly string ussClassName
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 |