Class ModalState
- Namespace
- BlazOrbit.Components.Layout
- Assembly
- BlazOrbit.dll
Runtime state for a modal currently tracked by IModalService.
public sealed class ModalState
- Inheritance
-
objectModalState
Constructors
ModalState()
public ModalState()
Properties
ComponentType
Concrete component type rendered inside the modal.
public required Type ComponentType { get; init; }
Property Value
- Type
Id
Stable identifier used by the JS focus trap.
public required string Id { get; init; }
Property Value
- string
IsAnimatingOut
true while the closing animation is running.
public bool IsAnimatingOut { get; set; }
Property Value
- bool
IsVisible
true while the modal is in the visible stack.
public bool IsVisible { get; set; }
Property Value
- bool
Options
Options describing rendering and behavior (dialog vs drawer specifics).
public required ModalOptionsBase Options { get; init; }
Property Value
Parameters
Parameter bag forwarded to the rendered component.
public Dictionary<string, object?>? Parameters { get; init; }
Property Value
- Dictionary<string, object>
Reference
Reference used by the content to close and return a result.
public required ModalReference Reference { get; init; }
Property Value
Type
Modal kind.
public ModalType Type { get; init; }