Class TabItemBuilder
Inheritance
System.Object
Syncfusion.EJ2.ControlBuilder
TabItemBuilder
Assembly: Syncfusion.EJ2.dll
Syntax
public class TabItemBuilder : ControlBuilder
Constructors
TabItemBuilder()
Declaration
TabItemBuilder(List<TabItem>)
Declaration
public TabItemBuilder(List<TabItem> collection)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<TabItem> |
collection |
|
Methods
Add()
Declaration
Content(String)
Specifies the content of Tab item, that is displayed when concern item header is selected.
Declaration
public TabItemBuilder Content(string content)
Parameters
Type |
Name |
Description |
System.String |
content |
|
Returns
ContentTemplate(Action<Object>)
Declaration
public TabItemBuilder ContentTemplate(Action<object> template)
Parameters
Type |
Name |
Description |
System.Action<System.Object> |
template |
|
Returns
ContentTemplate(Func<Object, Object>)
Declaration
public TabItemBuilder ContentTemplate(Func<object, object> template)
Parameters
Type |
Name |
Description |
System.Func<System.Object, System.Object> |
template |
|
Returns
CssClass(String)
Sets the CSS classes to the Tab item to customize its styles.
Declaration
public TabItemBuilder CssClass(string cssClass)
Parameters
Type |
Name |
Description |
System.String |
cssClass |
|
Returns
Disabled(Boolean)
Sets true to disable user interactions of the Tab item.
Declaration
public TabItemBuilder Disabled(bool disabled)
Parameters
Type |
Name |
Description |
System.Boolean |
disabled |
|
Returns
The object used for configuring the Tab item header properties.
Declaration
public TabItemBuilder Header(TabHeader header)
Parameters
Returns
Declaration
public TabItemBuilder Header(Action<TabHeaderBuilder> header)
Parameters
Returns
Specifies the header text of Tab item.
Declaration
public TabItemBuilder HeaderTemplate(string headerTemplate)
Parameters
Type |
Name |
Description |
System.String |
headerTemplate |
|
Returns
Id(String)
Sets unique ID to Tab item.
Declaration
public TabItemBuilder Id(string id)
Parameters
Type |
Name |
Description |
System.String |
id |
|
Returns
TabIndex(Double)
Specifies the tab order of the Tabs items. When positive values assigned, it allows to switch focus to the next/previous tabs items with Tab/ShiftTab keys.
By default, user can able to switch between items only via arrow keys.
If the value is set to 0 for all tabs items, then tab switches based on element order.
Declaration
public TabItemBuilder TabIndex(double tabIndex)
Parameters
Type |
Name |
Description |
System.Double |
tabIndex |
|
Returns
Visible(Boolean)
Sets false to hide the Tab item.
Declaration
public TabItemBuilder Visible(bool visible)
Parameters
Type |
Name |
Description |
System.Boolean |
visible |
|
Returns