TelerikRootComponent
A required root-level component that provides app-wide services and settings for Telerik UI for Blazor. Hosts ChildContent; configures localization via Localizer, icon system through IconType, and RTL with EnableRtl. Manages adaptive breakpoints (small/medium/large) and raises changes internally, maintains z-index stacking for overlay components, and tracks initialized component instances. Supports fragment rendering (dialogs/overlays) and exposes root-level settings through RootComponentSettings.
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class TelerikRootComponent : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseTelerikRootComponent
Implements:
Inherited Members
Constructors
public TelerikRootComponent()
Methods
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Overrides:
public virtual void Dispose()
Implements:
protected virtual void StateHasChanged()
Properties
Everything else in the application. The TelerikRootComponent must be at the root of the main layout of the application.
[Parameter]
public RenderFragment ChildContent { get; set; }
Specifies Whether RTL direction is enabled or not. Default value is false. This setting applies for Telerik UI for Blazor components only. To set global direction, set the dir attribute to an element wrapping the entire application, such as the body tag.
[Parameter]
public bool EnableRtl { get; set; }
Specifies the icon type used across the application. Default value is Svg.
[Parameter]
public IconType IconType { get; set; }
Specifies a localizer. Can be used with lazy-loading of assemblies in wasm.
[Parameter]
public ITelerikStringLocalizer Localizer { get; set; }
[Parameter]
public RenderFragment RootComponentSettings { get; set; }