Class ModalReference
- Namespace
- BlazOrbit.Components.Layout
- Assembly
- BlazOrbit.dll
Represents a reference to an open modal, allowing programmatic control over its lifecycle.
public sealed class ModalReference
- Inheritance
-
objectModalReference
Properties
Id
The unique identifier of the modal.
public string Id { get; }
Property Value
- string
Methods
CloseAsync()
Closes the modal without a result.
public Task CloseAsync()
Returns
- Task
A task that represents the asynchronous close operation.
CloseAsync<TResult>(TResult)
Closes the modal and returns the specified result.
public Task CloseAsync<TResult>(TResult result)
Parameters
resultTResultThe result to return.
Returns
- Task
A task that represents the asynchronous close operation.
Type Parameters
TResultThe type of the result.