Class Sealed
public sealed class MokaJsonBottomBar : ComponentBase

Namespace: Moka.Blazor.Json.Components

Status bar displaying document statistics, selection path, and validation status.

Inheritance

Inherits from: ComponentBase

Properties

NameDescription
CurrentDepth The depth of the currently selected node.
DocumentSize Formatted document size string (e.g., "14.2 KB").
IsLazyMode Whether the document is loaded in lazy (indexed) mode.
IsValid Whether the JSON document is valid.
MaxDepth The maximum depth of the document.
NodeCount Total number of nodes in the document.
ParseTimeMs Formatted parse time string (e.g., "12.3 ms").
SelectedPath The currently selected node's JSON Pointer path.
ValidationError Validation error message, if any.

CurrentDepth

int MokaJsonBottomBar.CurrentDepth { get; set; }

The depth of the currently selected node.

DocumentSize

string? MokaJsonBottomBar.DocumentSize { get; set; }

Formatted document size string (e.g., "14.2 KB").

IsLazyMode

bool MokaJsonBottomBar.IsLazyMode { get; set; }

Whether the document is loaded in lazy (indexed) mode.

IsValid

bool MokaJsonBottomBar.IsValid { get; set; }

Whether the JSON document is valid.

MaxDepth

int MokaJsonBottomBar.MaxDepth { get; set; }

The maximum depth of the document.

NodeCount

int MokaJsonBottomBar.NodeCount { get; set; }

Total number of nodes in the document.

ParseTimeMs

string? MokaJsonBottomBar.ParseTimeMs { get; set; }

Formatted parse time string (e.g., "12.3 ms").

SelectedPath

string? MokaJsonBottomBar.SelectedPath { get; set; }

The currently selected node's JSON Pointer path.

ValidationError

string? MokaJsonBottomBar.ValidationError { get; set; }

Validation error message, if any.

Type Relationships
classDiagram
                    style MokaJsonBottomBar fill:#f9f,stroke:#333,stroke-width:2px
                    MokaJsonBottomBar --|> ComponentBase : inherits
                
View Source
/// <summary>
///     Status bar displaying document statistics, selection path, and validation status.
/// </summary>
public sealed partial class MokaJsonBottomBar : ComponentBase
{
    /// <summary>Formatted document size string (e.g., "14.2 KB").</summary>
    [Parameter]
    public string? DocumentSize { get; set; }

    /// <summary>Total number of nodes in the document.</summary>
    [Parameter]
    public int NodeCount { get; set; }

    /// <summary>The depth of the currently selected node.</summary>
    [Parameter]
    public int CurrentDepth { get; set; }

    /// <summary>The maximum depth of the document.</summary>
    [Parameter]
    public int MaxDepth { get; set; }

    /// <summary>Formatted parse time string (e.g., "12.3 ms").</summary>
    [Parameter]
    public string? ParseTimeMs { get; set; }

    /// <summary>The currently selected node's JSON Pointer path.</summary>
    [Parameter]
    public string? SelectedPath { get; set; }

    /// <summary>Whether the JSON document is valid.</summary>
    [Parameter]
    public bool IsValid { get; set; } = true;

    /// <summary>Validation error message, if any.</summary>
    [Parameter]
    public string? ValidationError { get; set; }

    /// <summary>Whether the document is loaded in lazy (indexed) mode.</summary>
    [Parameter]
    public bool IsLazyMode { get; set; }
    private string ValidationClass => IsValid ? "moka-json-bottom-bar-item moka-json-validation-valid" : "moka-json-bottom-bar-item moka-json-validation-invalid";
    private string ValidationText => IsValid ? "Valid JSON" : $"Invalid: {ValidationError}";
    private string DisplayPath => JsonPathConverter.ToDotNotation(SelectedPath);
}
Was this page helpful?