ClassTabStripTab
Defines a single tab for TelerikTabStrip. Configure the header via Title or HeaderTemplate and the panel content with Content or ChildContent; control behavior using Disabled and Visible. Identify tabs with Id (usable with ActiveTabId for programmatic activation).
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class TabStripTab : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender, ITab, IDisposable
Inheritance: objectComponentBaseTabStripTab
Implements:
Inherited Members
Constructors
TabStripTab()
Declaration
public TabStripTab()
Properties
ChildContent
The contents of the tab.
Declaration
[Parameter]
public RenderFragment ChildContent { get; set; }
Property Value
Implements
Class
Applies custom CSS classes to this specific tab header for styling purposes. Use space-separated class names (e.g., "my-tab special-tab") to apply multiple styles to customize this tab's appearance.
Content
Defines the content displayed in the tab panel when this tab is active. Alternative to ChildContent - use either Content or ChildContent, but not both for the same tab.
Declaration
[Parameter]
public RenderFragment Content { get; set; }
Property Value
Implements
Disabled
Prevents user interaction with this tab when set to true.
Disabled tabs cannot be activated through clicks or keyboard navigation, and appear visually distinct to indicate their inactive state.
Declaration
[Parameter]
public bool Disabled { get; set; }
Property Value
Implements
HeaderTemplate
Defines custom content for the tab header, replacing the default text-based Title display. Use this template to include icons, badges, or complex markup in the tab header while maintaining accessibility.
Declaration
[Parameter]
public RenderFragment HeaderTemplate { get; set; }
Property Value
Implements
Id
Sets the unique identifier for this tab, used to associate the tab header with its content panel. Auto-generates a GUID if not provided, but setting a custom ID enables programmatic tab control via ActiveTabId.
Declaration
[Parameter]
public string Id { get; set; }
Property Value
Implements
Title
[Accessibility] Sets the text displayed in the tab header that users click to activate the tab. This title appears in the tab list and should be concise and descriptive of the tab's content.
Declaration
[Parameter]
public string Title { get; set; }
Property Value
Implements
Visible
Controls whether this tab appears in the TabStrip interface. Hidden tabs (false) are excluded from navigation and do not occupy space, while visible tabs (true, default) participate normally in the tab sequence.
Declaration
[Parameter]
public bool Visible { get; set; }
Property Value
Implements
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
Overrides
Dispose()
Declaration
public void Dispose()
Implements
OnAfterRender(bool)
Declaration
protected override void OnAfterRender(bool firstRender)
Parameters
firstRender
Overrides
OnInitialized()
Declaration
protected override void OnInitialized()
Overrides
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
public void Refresh()
Implements
SetParametersAsync(ParameterView)
Declaration
public override Task SetParametersAsync(ParameterView parameters)
Parameters
parameters
Returns
Overrides