Class RadzenDialog
Inherited Members
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
Syntax
public class RadzenDialog : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Constructors
RadzenDialog()
Declaration
public RadzenDialog()
Properties
CloseSideDialogAriaLabel
Gets or sets the close side dialog aria label text.
Declaration
[Parameter]
public string CloseSideDialogAriaLabel { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The close side dialog aria label text. |
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
| Type | Name | Description |
|---|---|---|
| RenderTreeBuilder | __builder |
Overrides
Close(dynamic)
Closes the currently open dialog and returns the specified result.
Declaration
public Task Close(dynamic result)
Parameters
| Type | Name | Description |
|---|---|---|
| dynamic | result | The result to return when the dialog is closed. This can contain any data that needs to be passed back to the caller. |
Returns
| Type | Description |
|---|---|
| Task | A Task that represents the asynchronous operation of closing the dialog. |
Dispose()
Declaration
public void Dispose()
DisposeAsync()
Disposes resources used by the dialog asynchronously. This method is typically called to clean up unmanaged resources or perform cleanup tasks for JavaScript interop involved in the dialog component.
Declaration
public ValueTask DisposeAsync()
Returns
| Type | Description |
|---|---|
| ValueTask | A ValueTask that represents the asynchronous disposal operation. |
OnAfterRenderAsync(bool)
Declaration
protected override Task OnAfterRenderAsync(bool firstRender)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | firstRender |
Returns
| Type | Description |
|---|---|
| Task |
Overrides
OnInitialized()
Declaration
protected override void OnInitialized()
Overrides
Open(string?, Type, Dictionary<string, object>, DialogOptions)
Opens a new dialog with specified parameters and options.
Declaration
public Task Open(string? title, Type type, Dictionary<string, object> parameters, DialogOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| string | title | The title of the dialog. |
| Type | type | The content type of the dialog, usually a component type. |
| Dictionary<string, object> | parameters | A dictionary of parameters to pass to the dialog content. |
| DialogOptions | options | Additional configuration options for the dialog, such as size or behavior. |
Returns
| Type | Description |
|---|---|
| Task | A Task that represents the asynchronous operation of opening the dialog. |