HtmlForgeX

API Reference

Class

SmartTabPanel

Namespace HtmlForgeX
Assembly HtmlForgeX

Represents a tab panel in the SmartTab component.

Inheritance

Constructors

public SmartTabPanel(String label) #

Initializes a new instance of the SmartTabPanel class.

Parameters

label System.String requiredposition: 0
The tab label.

Methods

public SmartTabPanel AsDisabled() #
Returns: SmartTabPanel

Marks the tab as disabled.

Returns

The current instance for method chaining.

public SmartTabPanel AsHidden() #
Returns: SmartTabPanel

Marks the tab as hidden.

Returns

The current instance for method chaining.

BuildTabItem(System.Boolean arg1) #

Builds the tab list item markup.

Parameters

arg1 System.Boolean required
BuildTabPanel(System.Boolean arg1) #

Builds the tab panel content markup.

Parameters

arg1 System.Boolean required
GetIconClass(HtmlForgeX.TablerIconType arg1) #

Converts TablerIconType to CSS class name.

Parameters

arg1 HtmlForgeX.TablerIconType required
public SmartTabPanel WithAjaxContent(String url, Boolean cache = true) #
Returns: SmartTabPanel

Configures ajax content loading for this tab.

Parameters

url System.String requiredposition: 0
The URL to load content from.
cache System.Boolean = true optionalposition: 1
Whether to cache the loaded content.

Returns

The current instance for method chaining.

public SmartTabPanel WithIcon(TablerIconType icon) #
Returns: SmartTabPanel

Sets the tab icon.

Parameters

icon HtmlForgeX.TablerIconType requiredposition: 0
The icon type.

Returns

The current instance for method chaining.

public SmartTabPanel WithPanelClass(String cssClass) #
Returns: SmartTabPanel

Sets a custom CSS class for the panel content.

Parameters

cssClass System.String requiredposition: 0
The CSS class name.

Returns

The current instance for method chaining.

public SmartTabPanel WithTabClass(String cssClass) #
Returns: SmartTabPanel

Sets a custom CSS class for the tab.

Parameters

cssClass System.String requiredposition: 0
The CSS class name.

Returns

The current instance for method chaining.

Properties

public String Id { get; set; } #

Gets or sets the panel identifier.

public String Label { get; set; } #

Gets or sets the tab label.

public Nullable<TablerIconType> Icon { get; set; } #

Gets or sets the tab icon.

public Boolean Disabled { get; set; } #

Gets or sets whether this tab is disabled.

public Boolean Hidden { get; set; } #

Gets or sets whether this tab is hidden.

public String TabClass { get; set; } #

Gets or sets a custom CSS class for the tab.

public String PanelClass { get; set; } #

Gets or sets a custom CSS class for the panel content.

public String AjaxUrl { get; set; } #

Gets or sets the URL for ajax content loading.

public Boolean CacheAjax { get; set; } #

Gets or sets whether to cache ajax content.

Extension Methods

public static SmartTab SmartTab(SmartTabPanel panel, Action<SmartTab> configure = null) #
Returns: SmartTab

Adds a SmartTab component to the element.

Parameters

element HtmlForgeX.Element requiredposition: 0
The element to add the SmartTab to.
configure System.Action{HtmlForgeX.SmartTab} = null optionalposition: 1
Configuration action for the SmartTab.

Returns

The SmartTab instance for further configuration.

public static SmartWizard SmartWizard(SmartTabPanel panel, Action<SmartWizard> configure = null) #
Returns: SmartWizard

Adds a SmartWizard component to the element.

Parameters

element HtmlForgeX.Element requiredposition: 0
The element to add the SmartWizard to.
configure System.Action{HtmlForgeX.SmartWizard} = null optionalposition: 1
Configuration action for the SmartWizard.

Returns

The SmartWizard instance for further configuration.