Class ActionBar
ActionBar 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 ActionBar : BaseVisualElement, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle, IContextOverrideElement, IAdditionalDataHolder
Constructors
ActionBar()
Default constructor.
Declaration
public ActionBar()
Fields
actionGroupUssClassName
The ActionBar action group styling class.
Declaration
public const string actionGroupUssClassName = "appui-actionbar__actiongroup"
Field Value
Type | Description |
---|---|
string |
checkboxUssClassName
The ActionBar checkbox styling class.
Declaration
public const string checkboxUssClassName = "appui-actionbar__checkbox"
Field Value
Type | Description |
---|---|
string |
labelUssClassName
The ActionBar label styling class.
Declaration
public const string labelUssClassName = "appui-actionbar__label"
Field Value
Type | Description |
---|---|
string |
ussClassName
The ActionBar main styling class.
Declaration
public const string ussClassName = "appui-actionbar"
Field Value
Type | Description |
---|---|
string |
Properties
collectionView
The collection view attached to this ActionBar.
Declaration
[Tooltip("The collection view attached to this ActionBar. The collection view is used to get the selected indices and the items source.")]
public BaseVerticalCollectionView collectionView { get; set; }
Property Value
Type | Description |
---|---|
BaseVerticalCollectionView |
contentContainer
The content container of the ActionBar.
Declaration
public override VisualElement contentContainer { get; }
Property Value
Type | Description |
---|---|
VisualElement |
Overrides
itemsSource
The items source from the Collection View.
Declaration
public IList itemsSource { get; }
Property Value
Type | Description |
---|---|
IList |
message
Text used for item selection message.
Declaration
[Tooltip("Text used for item selection message.\n\nWe recommend to use a SmartString text in order to adjust the text based on the number of selected items.\nExample: {itemCount:plural:Nothing selected|One selected item|{} selected items}")]
public string message { get; set; }
Property Value
Type | Description |
---|---|
string |
Remarks
We recommend to use a SmartString text in order to adjust the text based on the number of selected items.
Examples
{itemCount:plural:Nothing selected|One selected item|{} selected items}
selectedIndices
The list of selected indices from the Collection View.
Declaration
public IEnumerable<int> selectedIndices { get; }
Property Value
Type | Description |
---|---|
IEnumerable<int> |