Class TabItem
An item used in Tabs bar.
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 TabItem : BaseVisualElement, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle, IContextOverrideElement, ISelectableElement, IPressable
Constructors
TabItem()
Default constructor.
Declaration
public TabItem()
Fields
iconUssClassName
The TabItem icon styling class.
Declaration
public static readonly string iconUssClassName
Field Value
Type | Description |
---|---|
string |
labelUssClassName
The TabItem label styling class.
Declaration
public static readonly string labelUssClassName
Field Value
Type | Description |
---|---|
string |
ussClassName
The TabItem main styling class.
Declaration
public static readonly string ussClassName
Field Value
Type | Description |
---|---|
string |
Properties
clickable
Clickable Manipulator for this TabItem.
Declaration
public Pressable clickable { get; set; }
Property Value
Type | Description |
---|---|
Pressable |
icon
The TabItem icon.
Declaration
public string icon { get; set; }
Property Value
Type | Description |
---|---|
string |
label
The TabItem label.
Declaration
public string label { get; set; }
Property Value
Type | Description |
---|---|
string |
selected
The selected state of the TabItem.
Declaration
public bool selected { get; set; }
Property Value
Type | Description |
---|---|
bool |
Methods
SetSelectedWithoutNotify(bool)
Set the selected state of the TabItem without notifying the selection system.
Declaration
public void SetSelectedWithoutNotify(bool newValue)
Parameters
Type | Name | Description |
---|---|---|
bool | newValue | The new selected state. |