Class TabsLayout
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
Properties
ActiveTabIndex
Gets or sets the index of the active tab.
public int ActiveTabIndex { get; protected set; }
Property Value
ComponentName
The component name in the front-end side.
public override string ComponentName { get; }
Property Value
Scrollable
Gets or sets a value indicating whether the tabs header are scrollable.
public bool Scrollable { get; protected set; }
Property Value
Methods
SetActiveTabIndex(int)
Sets the index of the active tab and returns the layout.
public TabsLayout SetActiveTabIndex(int activeTabIndex)
Parameters
activeTabIndex
intThe 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
boolA value indicating whether the tabs header should be scrollable.
Returns
- TabsLayout
The current instance of the TabsLayout class.