Class Picker
Picker UI element.
Implements
Inherited Members
Namespace: Unity.AppUI.UI
Assembly: solution.dll
Syntax
public abstract class Picker : ExVisualElement, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle, INotifyValueChanged<IEnumerable<int>>, ISizeableElement, IPressable
Constructors
Name | Description |
---|---|
Picker() | Default constructor. |
Picker(IList, int[]) | Construct a Picker UI element with a provided dynamic collection of items. |
Fields
Name | Description |
---|---|
appuiPickerMenu | The Picker menu styling class. |
caretUssClassName | The Picker caret styling class. |
emphasizedUssClassName | The Picker emphasized mode styling class. |
m_Items | The list of items contained in the Picker. |
m_TitleContainer | The container for the Picker title. |
m_Value | The list of indices of the selected items. |
sizeUssClassName | The Picker size styling class. |
titleContainerUssClassName | The Picker title container styling class. |
titleUssClassName | The Picker title styling class. |
trailingContainerUssClassName | The Picker trailing container styling class. |
ussClassName | The Picker main styling class. |
Properties
Name | Description |
---|---|
clickable | Clickable Manipulator for this Picker. |
closeOnSelection | Close the picker menu automatically when an item is selected. |
defaultMessage | The Picker default message when no item is selected. |
defaultValue | The Picker default value. This is the value that will be selected if no value is set. |
emphasized | The Picker emphasized mode. |
selectedIndex | Quick access to the currently selected index for a Picker in Single selection mode. |
selectionType | The Picker selection type. |
size | The Picker size. |
sourceItems | The source items collection. |
value | The Picker value. This is the index of the selected item. |
Methods
Name | Description |
---|---|
OnRequestItemCreation(int) | Create a Picker item. |
OnUnbindItem(VisualElement, int) | Unbind a Picker item. |
Refresh() | Refresh the Picker UI. |
RefreshListUI() | Refresh the Picker list UI. |
RefreshTitleUI() | Refresh the Picker title UI. |
RefreshUI() | Refresh the Picker UI. |
SetValueWithoutNotify(IEnumerable<int>) | Set the Picker value without notifying any listeners. |