BaseComponent
Class
Base class for all Telerik Blazor components.
Definition
Namespace:Telerik.Blazor.Components.Common
Assembly:Telerik.Blazor.dll
Syntax:
C#
public class BaseComponent : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseBaseComponent
Derived Classes:
Implements:
Inherited Members
Constructors
C#
public BaseComponent()
Methods
C#
public virtual void Dispose()
Implements:
C#
protected static bool HaveOptionsChanged(IDictionary<string, object> oldOptions, IDictionary<string, object> newOptions)
C#
protected void InitLocalizer()
C#
protected virtual ValueTask<T> InvokeAsync<T>(string methodName, CancellationToken cancellationToken, params object[] args)
ValueTask<T>
C#
protected virtual ValueTask<T> InvokeComponentMethodAsync<T>(string methodName, CancellationToken cancellationToken, params object[] args)
ValueTask<T>
C#
protected virtual void StateHasChanged()
Properties
Applies additional CSS classes to the component's root element for custom styling and visual modifications. Use this to add custom themes, spacing, colors, or responsive design classes to enhance the component's appearance. Multiple classes can be specified separated by spaces. Example: "my-custom-panel dark-theme responsive". Classes are applied alongside the default Telerik component styling classes without overriding core functionality.
C#
[Parameter]
public string? Class { get; set; }
C#
[CascadingParameter]
public TelerikRootComponent? RootComponent { get; set; }