Class
ObjectExplorer
ConsoleMonster.Interactive
Browses object members lazily with the grid's keyboard and screen infrastructure.
Inheritance
- object
- ObjectExplorer
Usage
Explore 1 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 1
- Method ObjectExplorer.WithTitle
Constructors
public ObjectExplorer(object? value, InspectorOptions? options = null, string rootPath = "$x") #Creates an explorer without reading nested values.
Parameters
- value object?
- The object, dictionary, JSON value or collection to explore.
- options ConsoleMonster.Data.InspectorOptions? = null
- Member adapters and expansion limits.
- rootPath string = "$x"
- The root PowerShell expression used in returned paths.
Methods
public ExplorerNode? Show(InteractiveOptions? interactive = null, CancellationToken cancellationToken = default) #Runs the keyboard explorer, returning the selected node on Ctrl+Enter or F10.
Parameters
- interactive ConsoleMonster.Interactive.InteractiveOptions? = null
- Input, output and theme options.
- cancellationToken System.Threading.CancellationToken = default
- Stops an active session.
public IWidget Snapshot() #Creates a deterministic, non-interactive initial view for previews and capture.
public ObjectExplorer WithTitle(string title) #Sets the header title and returns this explorer for fluent composition.
Parameters
- title string
- The plain header text.
Inherited Methods
Properties
public InspectorOptions Options { get; } #The adapters and limits shared by each expansion.