Class SfBaseComponent
A Base Component for all the Syncfusion Blazor UI components to implement the common functionalities.
Inheritance
Namespace: Syncfusion.Blazor
Assembly: Syncfusion.Blazor.dll
Syntax
public abstract class SfBaseComponent : OwningComponentBase
Constructors
SfBaseComponent()
Declaration
protected SfBaseComponent()
Properties
LicenseContext
Declaration
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(Boolean)
Dispose unmanaged resources in the Syncfusion Blazor component.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | Boolean value to dispose the object. |
GetEffectivePlatform()
Determines the effective license platform with priority logic
Declaration
protected virtual Platform GetEffectivePlatform()
Returns
Type |
---|
Syncfusion.Licensing.Platform |
GetMainComponentPlatform()
Override in main components to return their specific platform
Declaration
protected virtual Platform GetMainComponentPlatform()
Returns
Type |
---|
Syncfusion.Licensing.Platform |
IsMainLicenseComponent()
Override in main components (PdfViewer, SfSpreadsheet, WordEditor) to return true
Declaration
protected virtual bool IsMainLicenseComponent()
Returns
Type |
---|
System.Boolean |
OnAfterRenderAsync(Boolean)
Method invoked after each time the component has been rendered.
Declaration
protected override Task OnAfterRenderAsync(bool firstRender)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | firstRender | Set to true for the first time component rendering; otherwise gets false. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A System.Threading.Tasks.Task representing any asynchronous operation. |
OnInitializedAsync()
Method invoked when the component is ready to start.
Declaration
protected override Task OnInitializedAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A System.Threading.Tasks.Task representing any asynchronous operation. |
OnObservableChange(String, Object, Boolean, 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 |
---|---|---|
System.String | propertyName | Observable property name. |
System.Object | sender | Observable model object. |
System.Boolean | isCollectionChanged | Sets true if the observable collection changed. |
System.Collections.Specialized.NotifyCollectionChangedEventArgs | e | Changed Event Args |
ValidateLicense()
Fixed license validation with per-platform tracking
Declaration
protected void ValidateLicense()