Class SfBaseComponent
A Base Component for all the Syncfusion Blazor UI components to implement the common functionalities.
Inheritance
Inherited Members
Namespace: Syncfusion.Blazor
Assembly: Syncfusion.Blazor.Core.dll
Syntax
public abstract class SfBaseComponent : SfOwningComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Constructors
SfBaseComponent()
Declaration
protected SfBaseComponent()
Properties
LicenseContext
Declaration
[CascadingParameter]
protected LicenseContext LicenseContext { get; set; }
Property Value
| Type |
|---|
| LicenseContext |
Methods
Dispose()
Dispose unmanaged resources in the Syncfusion Blazor component.
Declaration
public virtual void Dispose()
Dispose(bool)
Dispose unmanaged resources in the Syncfusion Blazor component.
Declaration
protected override void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | disposing | Boolean value to dispose the object. |
Overrides
OnAfterRenderAsync(bool)
Method invoked after each time the component has been rendered.
Declaration
protected override Task OnAfterRenderAsync(bool firstRender)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | firstRender | Set to true for the first time component rendering; otherwise gets false. |
Returns
| Type | Description |
|---|---|
| Task | A System.Threading.Tasks.Task representing any asynchronous operation. |
Overrides
OnInitializedAsync()
Method invoked when the component is ready to start.
Declaration
protected override Task OnInitializedAsync()
Returns
| Type | Description |
|---|---|
| Task | A System.Threading.Tasks.Task representing any asynchronous operation. |
Overrides
OnObservableChange(string, object, bool, NotifyCollectionChangedEventArgs)
Overridable Method for INotifyCollectionChanged event handler to track the changes.
Declaration
protected virtual void OnObservableChange(string propertyName, object sender, bool isCollectionChanged = false, NotifyCollectionChangedEventArgs e = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | propertyName | Observable property name. |
| object | sender | Observable model object. |
| bool | isCollectionChanged | Sets true if the observable collection changed. |
| NotifyCollectionChangedEventArgs | e | Changed Event Args |
ValidateLicenseByUICategory()
Array-based license validation method for UI component categories Optimized to skip validation for platforms already validated in current page session Uses SyncfusionService scoped cache that resets on page navigation/reload Prevents redundant JS interop calls and FusionLicenseProvider invocations
Declaration
protected Task ValidateLicenseByUICategory()
Returns
| Type |
|---|
| Task |