Class ToastTemplates
Configure templates to display within a header, content, and footer section of Toast.
Inheritance
System.Object
ToastTemplates
Namespace: Syncfusion.Blazor.Notifications
Assembly: Syncfusion.Blazor.dll
Syntax
public class ToastTemplates : OwningComponentBase
Constructors
ToastTemplates()
Declaration
public ToastTemplates()
Properties
Content
Defines the toast content template.
Declaration
public RenderFragment Content { get; set; }
Property Value
Type |
---|
Microsoft.AspNetCore.Components.RenderFragment |
Template
Defines the toast template.
Declaration
public RenderFragment Template { get; set; }
Property Value
Type |
---|
Microsoft.AspNetCore.Components.RenderFragment |
Title
Defines the toast title template.
Declaration
public RenderFragment Title { get; set; }
Property Value
Type |
---|
Microsoft.AspNetCore.Components.RenderFragment |
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder | __builder |
Dispose()
Dispose the unmanaged resources.
Declaration
public virtual void Dispose()
Dispose(Boolean)
Dispose the unmanaged resources.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | Boolean value to dispose the object. |
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. |