Enum
public enum MokaJsonCollapseMode
Namespace: Moka.Blazor.Json.Models
Specifies the initial collapse behavior when a document is loaded.
Fields
| Name | Description |
|---|---|
Depth static |
Expand to MaxDepthExpanded depth (default behavior). |
Expanded static |
Expand all nodes in the tree. |
Root static |
Collapse everything — show only the root brackets { } or [ ]. |
Depth
Depth = 0
Expand to MaxDepthExpanded depth (default behavior).
Expanded
Expanded = 2
Expand all nodes in the tree.
Root
Root = 1
Collapse everything — show only the root brackets { } or [ ].
View Source
/// <summary>
/// Specifies the initial collapse behavior when a document is loaded.
/// </summary>
public enum MokaJsonCollapseMode
{
/// <summary>
/// Expand to <c>MaxDepthExpanded</c> depth (default behavior).
/// </summary>
Depth,
/// <summary>
/// Collapse everything — show only the root brackets <c>{ }</c> or <c>[ ]</c>.
/// </summary>
Root,
/// <summary>
/// Expand all nodes in the tree.
/// </summary>
Expanded
}