Class
Sealed
public sealed class MokaJsonNodeContext
Namespace: Moka.Blazor.Json.Models
Contextual information about the node on which a context menu action was invoked.
Properties
| Name | Description |
|---|---|
Depth |
The depth of this node in the tree (root = 0). |
Path |
The JSON Pointer path (RFC 6901) to this node, e.g. "/users/0/name". |
PropertyName |
The property name if this node is an object member; null for array elements or root. |
RawValue |
The full raw JSON text of this node's value. |
RawValuePreview |
The raw JSON text of this node's value (truncated for large subtrees). |
ValueKind |
The kind of JSON value (Object, Array, String, Number, True, False, Null, Undefined). |
Viewer |
The parent viewer component, allowing programmatic access. |
Depth
int MokaJsonNodeContext.Depth { get; init; }
The depth of this node in the tree (root = 0).
Path
string MokaJsonNodeContext.Path { get; init; }
The JSON Pointer path (RFC 6901) to this node, e.g. "/users/0/name".
PropertyName
string? MokaJsonNodeContext.PropertyName { get; init; }
The property name if this node is an object member; null for array elements or root.
RawValue
string MokaJsonNodeContext.RawValue { get; init; }
The full raw JSON text of this node's value.
RawValuePreview
string MokaJsonNodeContext.RawValuePreview { get; init; }
The raw JSON text of this node's value (truncated for large subtrees).
ValueKind
JsonValueKind MokaJsonNodeContext.ValueKind { get; init; }
The kind of JSON value (Object, Array, String, Number, True, False, Null, Undefined).
Viewer
IMokaJsonViewer MokaJsonNodeContext.Viewer { get; init; }
The parent viewer component, allowing programmatic access.
View Source
/// <summary>
/// Contextual information about the node on which a context menu action was invoked.
/// </summary>
public sealed class MokaJsonNodeContext
{
/// <summary>
/// The JSON Pointer path (RFC 6901) to this node, e.g. "/users/0/name".
/// </summary>
public required string Path { get; init; }
/// <summary>
/// The depth of this node in the tree (root = 0).
/// </summary>
public required int Depth { get; init; }
/// <summary>
/// The kind of JSON value (Object, Array, String, Number, True, False, Null, Undefined).
/// </summary>
public required JsonValueKind ValueKind { get; init; }
/// <summary>
/// The property name if this node is an object member; <c>null</c> for array elements or root.
/// </summary>
public string? PropertyName { get; init; }
/// <summary>
/// The full raw JSON text of this node's value.
/// </summary>
public required string RawValue { get; init; }
/// <summary>
/// The raw JSON text of this node's value (truncated for large subtrees).
/// </summary>
public required string RawValuePreview { get; init; }
/// <summary>
/// The parent viewer component, allowing programmatic access.
/// </summary>
public required IMokaJsonViewer Viewer { get; init; }
}