Interface
ITab

Interface describing the public properties of a Tab instance you can access.

Definition

Namespace:Telerik.Blazor.Components.TabStrip

Assembly:Telerik.Blazor.dll

Syntax:

cs-api-definition
public interface ITab

Properties

ChildContent

Gets the child content rendered inside the tab header when using declarative syntax. This property contains the markup defined between the opening and closing TabStripTab tags. Use this for simple text content or when combining with other header elements.

Declaration

cs-api-definition
RenderFragment ChildContent { get; }

Property Value

RenderFragment

Content

Gets the template for rendering the tab panel content when the tab is active. This property defines what appears in the main content area below the tab headers. The content is only rendered when the tab becomes active unless PersistTabContent is enabled.

Declaration

cs-api-definition
RenderFragment Content { get; }

Property Value

RenderFragment

Disabled

Determines whether the tab is disabled and cannot be selected or activated by user interaction. Disabled tabs remain visible but ignore click events and keyboard navigation. Use this to temporarily restrict access to tabs based on application state or user permissions.

Declaration

cs-api-definition
bool Disabled { get; }

Property Value

bool

HeaderTemplate

Gets the custom template for rendering the tab header with full control over markup and styling. This property takes precedence over both Title and ChildContent when defined. Use this for complex header layouts with icons, badges, or custom interactive elements.

Declaration

cs-api-definition
RenderFragment HeaderTemplate { get; }

Property Value

RenderFragment

Id

Gets the unique identifier for programmatic tab control and state management. This property enables targeting specific tabs through ActiveTabId or event handling. Must be unique within the TabStrip component to avoid selection conflicts.

Declaration

cs-api-definition
string Id { get; }

Property Value

string

Title

Gets the text displayed in the tab header for simple title-based tabs. This property is ignored when HeaderTemplate or ChildContent are defined. Use this for straightforward text-only tab headers without additional markup.

Declaration

cs-api-definition
string Title { get; }

Property Value

string

Visible

Determines whether the tab is visible in the TabStrip header and available for interaction. Hidden tabs are completely removed from the UI and do not participate in navigation or rendering. Default value is true. Use this for conditional tab display based on user roles or application logic.

Declaration

cs-api-definition
bool Visible { get; }

Property Value

bool

Methods

Refresh()

Forces the tab to re-render its content and update its visual state. Call this method when tab data changes externally and automatic change detection is insufficient. Useful for refreshing dynamic content or applying style changes that require a full render cycle.

Declaration

cs-api-definition
void Refresh()