Table of Contents

Class TabsLayout

Namespace
AbanoubNassem.Trinity.Layouts
Assembly
AbanoubNassem.Trinity.dll

A layout that arranges form components in a set of tabs.

public class TabsLayout : TrinityLayout<TabsLayout>, ITrinityLayout, ITrinityComponent, IHasSchema, IFormComponent
Inheritance
TabsLayout
Implements
Inherited Members

Constructors

TabsLayout(List<Tab>, int?)

public TabsLayout(List<Tab> tabs, int? columns = null)

Parameters

tabs List<Tab>
columns int?

Properties

ActiveTabIndex

Gets or sets the index of the active tab.

public int ActiveTabIndex { get; protected set; }

Property Value

int

ComponentName

The component name in the front-end side.

public override string ComponentName { get; }

Property Value

string

Scrollable

Gets or sets a value indicating whether the tabs header are scrollable.

public bool Scrollable { get; protected set; }

Property Value

bool

Methods

SetActiveTabIndex(int)

Sets the index of the active tab and returns the layout.

public TabsLayout SetActiveTabIndex(int activeTabIndex)

Parameters

activeTabIndex int

The index of the tab to set as active.

Returns

TabsLayout

The current instance of the TabsLayout class.

SetAsScrollable(bool)

Sets the layout to be scrollable or not and returns the layout.

public TabsLayout SetAsScrollable(bool scrollable = true)

Parameters

scrollable bool

A value indicating whether the tabs header should be scrollable.

Returns

TabsLayout

The current instance of the TabsLayout class.