Class ActionBar
ActionBar UI element.
Implements
Inherited Members
Namespace: Unity.AppUI.UI
Assembly: Unity.AppUI.dll
Syntax
public class ActionBar : BaseVisualElement, IEventHandler, IVisualElementScheduler, IExperimentalFeatures, ITransitionAnimations, ITransform, 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 Action
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 |
---|---|
Base |
contentContainer
The content container of the Action
Declaration
public override VisualElement contentContainer { get; }
Property Value
Type | Description |
---|---|
Visual |
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> |