Skip to content
ConsoleMonster
Class

DataGridCell

ConsoleMonster.Interactive

Namespace
ConsoleMonster.Interactive
Assembly
ConsoleMonster
Modifiers
sealed

A cell computed on demand when it first enters a grid viewport. The factory runs on a worker and never owns UI state.

Inheritance

  • object
  • DataGridCell

Constructors

DataGridCell 2 overloads
public DataGridCell(Func<CancellationToken, Task<object?>> value, string placeholder = "…") #

Creates an asynchronous cell. Use a fresh cell for a new listing or a changed value.

Parameters

value System.Func<System.Threading.CancellationToken, System.Threading.Tasks.Task<object?>> required
placeholder string = "…" optional
public DataGridCell(Func<object?> value, string placeholder = "…") #

Creates a lazy synchronous cell; computation is still moved off the renderer.

Parameters

value System.Func<object?> required
placeholder string = "…" optional

Properties

public string Placeholder { get; } #

Text displayed before completion.

public Exception? Error { get; } #

The failure, or null. A failed cell displays its placeholder and does not close the app.

public bool Ready { get; } #

Whether a value has completed successfully.