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, 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
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.
Closeable
Specifies whether a close button is rendered.
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
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.
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
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.
Pinnable
Specifies whether a tab is pinnable.
If pinnable is true the tab will render a unpin icon when Pinned is true and the end-user will be able to pin the tab using a context menu action.
Pinned
Specifies whether a tab is pinned.
PinnedChanged
Gets or sets the callback that is invoked when the pinned state changes.
Declaration
[Parameter]
public EventCallback<bool> PinnedChanged { get; set; }
Property Value
Remarks
Use this property to respond to changes in the pinned state, such as updating UI or triggering related logic when the value changes.
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.
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.
VisibleChanged
Fires when the Visible state of the tab changes, for example when the tab is closed, hidden, or shown programmatically. Use this event to react to visibility changes, such as updating application state or preventing certain tabs from being hidden.
Declaration
[Parameter]
public EventCallback<bool> VisibleChanged { get; set; }
Property Value
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
SetParametersAsync(ParameterView)
Declaration
public override Task SetParametersAsync(ParameterView parameters)
Parameters
parameters
Returns
Overrides