Table of Contents

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
object
ModalReference

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

result TResult

The result to return.

Returns

Task

A task that represents the asynchronous close operation.

Type Parameters

TResult

The type of the result.