API Reference
Dashboard
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 42 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 22
- Method DashboardBuilder.BuildDashboard
- Method Ui.Dashboard
- Extension method Dashboard.AddFooterHint
- Extension method Dashboard.AddFooterHints
- Extension method Dashboard.WithCompactSummary
- Extension method Dashboard.WithFooter
- Extension method Dashboard.WithMinimumSize
- Extension method Dashboard.WithShowClock
- Extension method Dashboard.WithStatus
- Extension method Dashboard.WithStatusLevel
- Extension method Dashboard.WithSubtitle
- Extension method Dashboard.WithTitle
- Method DashboardFluent.AddFooterHint
- Method DashboardFluent.AddFooterHints
- Method DashboardFluent.WithCompactSummary
- Method DashboardFluent.WithFooter
- Method DashboardFluent.WithMinimumSize
- Method DashboardFluent.WithShowClock
- Method DashboardFluent.WithStatus
- Method DashboardFluent.WithStatusLevel
- Method DashboardFluent.WithSubtitle
- Method DashboardFluent.WithTitle
Accepted by parameters 20
- Extension method Dashboard.AddFooterHint
- Extension method Dashboard.AddFooterHints
- Extension method Dashboard.WithCompactSummary
- Extension method Dashboard.WithFooter
- Extension method Dashboard.WithMinimumSize
- Extension method Dashboard.WithShowClock
- Extension method Dashboard.WithStatus
- Extension method Dashboard.WithStatusLevel
- Extension method Dashboard.WithSubtitle
- Extension method Dashboard.WithTitle
- Method DashboardFluent.AddFooterHint
- Method DashboardFluent.AddFooterHints
- Method DashboardFluent.WithCompactSummary
- Method DashboardFluent.WithFooter
- Method DashboardFluent.WithMinimumSize
- Method DashboardFluent.WithShowClock
- Method DashboardFluent.WithStatus
- Method DashboardFluent.WithStatusLevel
- Method DashboardFluent.WithSubtitle
- Method DashboardFluent.WithTitle
Constructors
public Dashboard(String title, IWidget body, String name = "dashboard") #Creates a dashboard.
Parameters
- title System.String
- The title (markup).
- body ConsoleMonster.Layout.IWidget
- The body.
- name System.String = "dashboard"
- The live name (default dashboard).
Methods
public override Void Apply(LiveEvent liveEvent) #VoidApplies an event to the widget's state.
Parameters
- liveEvent ConsoleMonster.Live.LiveEvent
- The event.
public override String? Describe(LiveEvent liveEvent) #String?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
A plain line or null.
public override Size Measure(Constraints constraints, RenderContext context) #SizeReturns the size the widget wants within the constraints.
Parameters
- constraints ConsoleMonster.Layout.Constraints
- The space offered.
- context ConsoleMonster.Canvas.RenderContext
- Profile, theme and glyphs.
Returns
The desired size, never larger than the constraints.
public override Void Render(Region region, RenderContext context) #VoidRenders 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) #VoidRenders 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 Boolean TryGetTaskbarProgress(out TaskbarState state, out Double fraction) #BooleanThe 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 System.Double
- Always NaN (the body's widgets report the percentage).
Returns
Whether the status is a failure or a warning.
Inherited Methods
public virtual Boolean Equals(Object? obj) #BooleanParameters
- obj Object?
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; } #The progress text for the compact status line (for example 218/332 · ✗12 ▲25), or null to use Dashboard.Status. Called on the render thread.
public String? Status { get; set; } #A status shown on the right of the header (markup).
public StatusKind? StatusLevel { get; set; } #The status kind, shown as a marker before Dashboard.Status.
public Boolean ShowClock { get; set; } #Whether the elapsed clock is shown in the header (default true).
Inherited Properties
Extension Methods
public static Dashboard WithCompactSummary(Dashboard dashboard, Func<String>? value) #DashboardSets Dashboard.CompactSummary: The progress text for the compact status line (for example 218/332 · ✗12 ▲25), or null to use Dashboard.Status. Called on the render thread.
Parameters
- dashboard ConsoleMonster.Widgets.Dashboard
- The instance.
- value System.Func<System.String>?
- The value.
Returns
The same instance.
public static Dashboard WithMinimumSize(Dashboard dashboard, Size value) #DashboardSets 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.
Returns
The same instance.
public static Dashboard WithShowClock(Dashboard dashboard, Boolean value = true) #DashboardSets Dashboard.ShowClock: Whether the elapsed clock is shown in the header (default true).
Parameters
- dashboard ConsoleMonster.Widgets.Dashboard
- The instance.
- value System.Boolean = true
- The value (default true).
Returns
The same instance.
public static Dashboard WithStatus(Dashboard dashboard, String? value) #DashboardSets Dashboard.Status: A status shown on the right of the header (markup).
Parameters
- dashboard ConsoleMonster.Widgets.Dashboard
- The instance.
- value System.String?
- The value.
Returns
The same instance.
public static Dashboard WithStatusLevel(Dashboard dashboard, StatusKind? value) #DashboardSets Dashboard.StatusLevel: The status kind, shown as a marker before Dashboard.Status.
Parameters
- dashboard ConsoleMonster.Widgets.Dashboard
- The instance.
- value ConsoleMonster.Styling.StatusKind?
- The value.
Returns
The same instance.
public static Dashboard WithSubtitle(Dashboard dashboard, String? value) #DashboardSets Dashboard.Subtitle: The subtitle (markup), shown after the title.
Parameters
- dashboard ConsoleMonster.Widgets.Dashboard
- The instance.
- value System.String?
- The value.
Returns
The same instance.
public static Dashboard WithTitle(Dashboard dashboard, String value) #DashboardSets Dashboard.Title: The title (markup).
Parameters
- dashboard ConsoleMonster.Widgets.Dashboard
- The instance.
- value System.String
- The value.
Returns
The same instance.