Class
Sealed
public sealed class JsonNodeSelectedEventArgs : EventArgs
Namespace: Moka.Blazor.Json.Models
Event arguments raised when a node is selected in the JSON viewer.
Inheritance
Inherits from: EventArgs
Properties
| Name | Description |
|---|---|
Depth |
The depth of the selected node (root = 0). |
Path |
The JSON Pointer path (RFC 6901) to the selected node. |
PropertyName |
The property name if this node is an object member; null otherwise. |
RawValue |
The full raw JSON text of this node's value. |
RawValuePreview |
A preview of the raw JSON value (truncated for large values). |
ValueKind |
The kind of JSON value at the selected node. |
Depth
int JsonNodeSelectedEventArgs.Depth { get; init; }
The depth of the selected node (root = 0).
Path
string JsonNodeSelectedEventArgs.Path { get; init; }
The JSON Pointer path (RFC 6901) to the selected node.
PropertyName
string? JsonNodeSelectedEventArgs.PropertyName { get; init; }
The property name if this node is an object member; null otherwise.
RawValue
string JsonNodeSelectedEventArgs.RawValue { get; init; }
The full raw JSON text of this node's value.
RawValuePreview
string JsonNodeSelectedEventArgs.RawValuePreview { get; init; }
A preview of the raw JSON value (truncated for large values).
ValueKind
JsonValueKind JsonNodeSelectedEventArgs.ValueKind { get; init; }
The kind of JSON value at the selected node.
Type Relationships
classDiagram
style JsonNodeSelectedEventArgs fill:#f9f,stroke:#333,stroke-width:2px
JsonNodeSelectedEventArgs --|> EventArgs : inherits
View Source
/// <summary>
/// Event arguments raised when a node is selected in the JSON viewer.
/// </summary>
public sealed class JsonNodeSelectedEventArgs : EventArgs
{
/// <summary>
/// The JSON Pointer path (RFC 6901) to the selected node.
/// </summary>
public required string Path { get; init; }
/// <summary>
/// The depth of the selected node (root = 0).
/// </summary>
public required int Depth { get; init; }
/// <summary>
/// The kind of JSON value at the selected node.
/// </summary>
public required JsonValueKind ValueKind { get; init; }
/// <summary>
/// The property name if this node is an object member; <c>null</c> otherwise.
/// </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>
/// A preview of the raw JSON value (truncated for large values).
/// </summary>
public required string RawValuePreview { get; init; }
}