Skip to content
ConsoleMonster
Class

StatusItem

ConsoleMonster.Widgets

Namespace
ConsoleMonster.Widgets
Assembly
ConsoleMonster
Modifiers
sealed

One row of a StatusList.

Inheritance

  • object
  • StatusItem

Usage

Explore 3 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 3

Constructors

public StatusItem(string key, string label, StatusKind status, string? detail = null) #

Creates an item.

Parameters

key string required
Unique key.
label string required
Label (markup).
status ConsoleMonster.Styling.StatusKind required
Status.
detail string? = null optional
Detail shown right-aligned and muted (duration, count), or null.

Properties

public string Key { get; } #

Unique key.

public string Label { get; set; } #

Label (markup).

public StatusKind Status { get; set; } #

Status.

public string? Detail { get; set; } #

Right-aligned detail.

public IList<StatusItem> Children { get; } #

Rows nested under this one, indented under its label (for example the objects behind a warning). A child with StatusKind.None is a plain detail row with the neutral marker.