InterfaceITab
Interface describing the public properties of a Tab instance you can access.
Definition
Namespace:Telerik.Blazor.Components.TabStrip
Assembly:Telerik.Blazor.dll
Syntax:
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.
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.
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.
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.
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.
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.
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
void Refresh()