Dashboard
ConsoleMonster.Widgets
A full-screen shell for live sessions: a header bar (title, subtitle, status and elapsed clock), the body and a footer bar (hints such as "Ctrl+C to stop"). In print-once output it renders the same parts top to bottom. Live operations: title (Text), subtitle (Text), status (Text, State), footer (Text).
Inheritance
- LiveWidget
- Dashboard
Usage
Explore 55 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 27
- Method Ui.Dashboard
- Extension method Dashboard.CompactSummaryBy
- Extension method Dashboard.Content
- Extension method Dashboard.Detail
- Extension method Dashboard.Footer
- Extension method Dashboard.FooterHint
- Extension method Dashboard.FooterHints
- Extension method Dashboard.FooterSegment
- Extension method Dashboard.FooterSegments
- Extension method Dashboard.MinimumSize
- Extension method Dashboard.ShowElapsed
- Extension method Dashboard.Status
- Extension method Dashboard.Subtitle
- Extension method Dashboard.Title
- Method DashboardFluent.CompactSummaryBy
- Method DashboardFluent.Content
- Method DashboardFluent.Detail
- Method DashboardFluent.Footer
- Method DashboardFluent.FooterHint
- Method DashboardFluent.FooterHints
- Method DashboardFluent.FooterSegment
- Method DashboardFluent.FooterSegments
- Method DashboardFluent.MinimumSize
- Method DashboardFluent.ShowElapsed
- Method DashboardFluent.Status
- Method DashboardFluent.Subtitle
- Method DashboardFluent.Title
Accepted by parameters 28
- Method ContentBuilder.Dashboard
- Method ContentBuilder.Dashboard
- Extension method Dashboard.CompactSummaryBy
- Extension method Dashboard.Content
- Extension method Dashboard.Detail
- Extension method Dashboard.Footer
- Extension method Dashboard.FooterHint
- Extension method Dashboard.FooterHints
- Extension method Dashboard.FooterSegment
- Extension method Dashboard.FooterSegments
- Extension method Dashboard.MinimumSize
- Extension method Dashboard.ShowElapsed
- Extension method Dashboard.Status
- Extension method Dashboard.Subtitle
- Extension method Dashboard.Title
- Method DashboardFluent.CompactSummaryBy
- Method DashboardFluent.Content
- Method DashboardFluent.Detail
- Method DashboardFluent.Footer
- Method DashboardFluent.FooterHint
- Method DashboardFluent.FooterHints
- Method DashboardFluent.FooterSegment
- Method DashboardFluent.FooterSegments
- Method DashboardFluent.MinimumSize
- Method DashboardFluent.ShowElapsed
- Method DashboardFluent.Status
- Method DashboardFluent.Subtitle
- Method DashboardFluent.Title
Constructors
public Dashboard(string title = "", IWidget? content = null, string widgetId = "dashboard") #Creates a dashboard.
Parameters
- title string = ""
- The title (markup).
- content ConsoleMonster.Layout.IWidget? = null
- The body.
- widgetId string = "dashboard"
- The live name (default dashboard).
Methods
public override void Apply(LiveEvent liveEvent) #Applies an event to the widget's state.
Parameters
- liveEvent ConsoleMonster.Live.LiveEvent
- The event.
public override string? Describe(LiveEvent liveEvent) #Returns a line describing the event for line-based outputs (Stream/Plain), or null when the event is not worth a line (for example a single counter increment). Called after ILiveTarget.Apply.
Parameters
- liveEvent ConsoleMonster.Live.LiveEvent
- The event that was applied.
Returns
string? A plain line or null.public override Size Measure(Constraints constraints, RenderContext context) #Returns the size the widget wants within the constraints.
Parameters
- constraints ConsoleMonster.Layout.Constraints
- The space offered.
- context ConsoleMonster.Canvas.RenderContext
- Profile, theme and glyphs.
public override void Render(Region region, RenderContext context) #Renders into a region. The region may be smaller or larger than the measured size.
Parameters
- region ConsoleMonster.Canvas.Region
- The target region.
- context ConsoleMonster.Canvas.RenderContext
- Profile, theme and glyphs.
public void RenderCompact(Region region, RenderContext context) #Renders the compact form into a region smaller than ICompactWidget.MinimumSize.
Parameters
- region ConsoleMonster.Canvas.Region
- The region (possibly tiny or empty).
- context ConsoleMonster.Canvas.RenderContext
- The render context.
public bool TryGetTaskbarProgress(out TaskbarState state, out double fraction) #The run state for the terminal's indicator: red after a failure status, yellow after a warning status.
Parameters
- state ConsoleMonster.Output.TaskbarState
- The state.
- fraction double
- Always NaN (the body's widgets report the percentage).
Returns
bool Whether the status is a failure or a warning.Inherited Methods
Properties
public Size MinimumSize { get; set; } #The smallest window the full layout needs (default 60 × 14). Below it a live session renders the compact form: a one-line status and the highest-priority Prioritized widgets that fit.
public Func<string>? CompactSummary { get; set; } #Fluent("CompactSummaryBy")The progress text for the compact status line (for example 218/332 · ✗12 ▲25), or null to use Dashboard.Detail. Called on the render thread.
public string? Detail { get; set; } #A status shown on the right of the header (markup).
public StatusKind? Status { get; set; } #The status kind, shown as a marker before Dashboard.Detail.
public bool ShowElapsed { get; set; } #Whether the elapsed clock is shown in the header (default true).
Inherited Properties
Extension Methods
public static Dashboard CompactSummaryBy(Dashboard dashboard, Func<string>? value) #Sets Dashboard.CompactSummary: The progress text for the compact status line (for example 218/332 · ✗12 ▲25), or null to use Dashboard.Detail. Called on the render thread.
Parameters
- dashboard ConsoleMonster.Widgets.Dashboard
- The instance.
- value System.Func<string>?
- The callback.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Widgets.Dashboard { CompactSummary = value }; Ui.Dashboard().CompactSummaryBy(value);public static Dashboard Content(Dashboard dashboard, IWidget content) #Configures this container's content before session ownership.
Parameters
- dashboard ConsoleMonster.Widgets.Dashboard
- The instance.
- content ConsoleMonster.Layout.IWidget
- The widget or nested content builder.
public static Dashboard Content(Dashboard dashboard, Action<ContentBuilder> content) #Configures this container's content before session ownership.
Parameters
- dashboard ConsoleMonster.Widgets.Dashboard
- The instance.
- content System.Action<ConsoleMonster.Layout.ContentBuilder>
- The widget or nested content builder.
public static Dashboard Detail(Dashboard dashboard, string? value) #Sets Dashboard.Detail: A status shown on the right of the header (markup).
Parameters
- dashboard ConsoleMonster.Widgets.Dashboard
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Widgets.Dashboard { Detail = value }; Ui.Dashboard().Detail(value);public static Dashboard MinimumSize(Dashboard dashboard, Size value) #Sets Dashboard.MinimumSize: The smallest window the full layout needs (default 60 × 14). Below it a live session renders the compact form: a one-line status and the highest-priority Prioritized widgets that fit.
Parameters
- dashboard ConsoleMonster.Widgets.Dashboard
- The instance.
- value ConsoleMonster.Layout.Size
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Widgets.Dashboard { MinimumSize = value }; Ui.Dashboard().MinimumSize(value);public static Dashboard ShowElapsed(Dashboard dashboard, bool value = true) #Sets Dashboard.ShowElapsed: Whether the elapsed clock is shown in the header (default true).
Parameters
- dashboard ConsoleMonster.Widgets.Dashboard
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Widgets.Dashboard { ShowElapsed = value }; Ui.Dashboard().ShowElapsed(value);public static Dashboard Status(Dashboard dashboard, StatusKind? value) #Sets Dashboard.Status: The status kind, shown as a marker before Dashboard.Detail.
Parameters
- dashboard ConsoleMonster.Widgets.Dashboard
- The instance.
- value ConsoleMonster.Styling.StatusKind?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Widgets.Dashboard { Status = value }; Ui.Dashboard().Status(value);public static Dashboard Subtitle(Dashboard dashboard, string? value) #Sets Dashboard.Subtitle: The subtitle (markup), shown after the title.
Parameters
- dashboard ConsoleMonster.Widgets.Dashboard
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Widgets.Dashboard { Subtitle = value }; Ui.Dashboard().Subtitle(value);public static Dashboard Title(Dashboard dashboard, string value) #Sets Dashboard.Title: The title (markup).
Parameters
- dashboard ConsoleMonster.Widgets.Dashboard
- The instance.
- value string
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Widgets.Dashboard { Title = value }; Ui.Dashboard().Title(value);