Class TabbedPanel
Manages state of TabbedPanelHeader and TabbedPanelContent, triggering in/out animations on TabbedPanelContent and updating selected status of TabbedPanelHeader.
Inheritance
Namespace: LlamaSoftware.UI.Tabs
Assembly: LlamaSoftware.UI.Tabs.dll
Syntax
[DisallowMultipleComponent]
public class TabbedPanel : MonoBehaviour
Fields
ContentPanels
List of Content Panels. Can be created programatically or via inspector
Declaration
public List<TabbedPanelContent> ContentPanels
Field Value
| Type | Description |
|---|---|
| System.Collections.Generic.List<TabbedPanelContent> |
Headers
List of headers. Can be created programatically or via inspector
Declaration
public List<TabbedPanelHeader> Headers
Field Value
| Type | Description |
|---|---|
| System.Collections.Generic.List<TabbedPanelHeader> |
OnChange
Event raised as the active tab changes. Called at the same time the TabbedPanelHeader and TabbedPanelContent begin animating.
Declaration
public TabbedPanel.ChangeTabEvent OnChange
Field Value
| Type | Description |
|---|---|
| TabbedPanel.ChangeTabEvent |
SelectedIndex
Current selected index. The initial value will be the initially selected tab on LlamaSoftware.UI.Tabs.TabbedPanel.Start.
Declaration
public int SelectedIndex
Field Value
| Type | Description |
|---|---|
| System.Int32 |
Methods
ForceOnSelect(Int32)
Triggers TabbedPanelHeaders at selected index, and the provided
Declaration
public void ForceOnSelect(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | Newly selected index |
OnSelect(Int32)
Triggers TabbedPanelHeaders at selected index, and the provided
Declaration
public void OnSelect(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | Newly selected index |