Class Sealed
public sealed class MokaJsonDebugOverlay : ComponentBase

Namespace: Moka.Blazor.Json.Diagnostics.Components

Diagnostic overlay that displays real-time lazy parsing stats for a MokaJsonViewer. Add this component alongside your viewer and set MokaJsonDebugOverlay.Enabled to control visibility.

Inheritance

Inherits from: ComponentBase

Properties

NameDescription
Enabled Whether the overlay is visible. Default is true.
Viewer The viewer instance to read debug stats from.

Enabled

[Parameter]
public bool Enabled { get; set; }

Whether the overlay is visible. Default is true.

Viewer

[Parameter]
public MokaJsonViewer? Viewer { get; set; }

The viewer instance to read debug stats from.

Type Relationships
classDiagram
    style MokaJsonDebugOverlay fill:#f9f,stroke:#333,stroke-width:2px
    MokaJsonDebugOverlay --|> ComponentBase : inherits
View Source
/// <summary>
///     Diagnostic overlay that displays real-time lazy parsing stats for a
///     <see cref = "MokaJsonViewer"/>. Add this component alongside your viewer
///     and set <see cref = "Enabled"/> to control visibility.
/// </summary>
public sealed partial class MokaJsonDebugOverlay : ComponentBase
{
    /// <summary>
    ///     The viewer instance to read debug stats from.
    /// </summary>
    [Parameter]
    public MokaJsonViewer? Viewer { get; set; }

    /// <summary>
    ///     Whether the overlay is visible. Default is <c>true</c>.
    /// </summary>
    [Parameter]
    public bool Enabled { get; set; } = true;
}
Was this page helpful?