Skip to content
ConsoleMonster
Class

DashboardFluent

ConsoleMonster.Widgets

Namespace
ConsoleMonster.Widgets
Assembly
ConsoleMonster
Modifiers
static

The fluent methods of Dashboard, generated from its public properties: A property-named method sets a property and a singular-named method adds to a collection, both returning the same instance.

Inheritance

  • object
  • DashboardFluent

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 required
The instance.
value System.Func<string>? required
The callback.

Returns

Dashboard The same instance.

Examples

// C# initializer or property                                               // C# fluent
new global::ConsoleMonster.Widgets.Dashboard { CompactSummary = value };    Ui.Dashboard().CompactSummaryBy(value);
Content 2 overloads
public static Dashboard Content(Dashboard dashboard, IWidget content) #

Configures this container's content before session ownership.

Parameters

dashboard ConsoleMonster.Widgets.Dashboard required
The instance.
content ConsoleMonster.Layout.IWidget required
The widget or nested content builder.

Returns

Dashboard The same instance.
public static Dashboard Content(Dashboard dashboard, Action<ContentBuilder> content) #

Configures this container's content before session ownership.

Parameters

dashboard ConsoleMonster.Widgets.Dashboard required
The instance.
content System.Action<ConsoleMonster.Layout.ContentBuilder> required
The widget or nested content builder.

Returns

Dashboard The same instance.
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 required
The instance.
value string? required
The value.

Returns

Dashboard The same instance.

Examples

// C# initializer or property                                       // C# fluent
new global::ConsoleMonster.Widgets.Dashboard { Detail = value };    Ui.Dashboard().Detail(value);
public static Dashboard FooterHint(Dashboard dashboard, KeyHint item) #

Adds an item to Dashboard.FooterHints: The key hints in the footer when Dashboard.Footer is not set (default: ctrl+c stop).

Parameters

dashboard ConsoleMonster.Widgets.Dashboard required
The instance.
item ConsoleMonster.Widgets.KeyHint required
The item.

Returns

Dashboard The same instance.
public static Dashboard FooterHints(Dashboard dashboard, IEnumerable<KeyHint> items) #

Adds items to Dashboard.FooterHints: The key hints in the footer when Dashboard.Footer is not set (default: ctrl+c stop).

Parameters

dashboard ConsoleMonster.Widgets.Dashboard required
The instance.
items System.Collections.Generic.IEnumerable<ConsoleMonster.Widgets.KeyHint> required
The items, in order.

Returns

Dashboard The same instance.
public static Dashboard FooterSegment(Dashboard dashboard, FooterSegment item) #

Adds an item to Dashboard.FooterSegments: Links and notes on the right of the footer (a report, the docs), as links where the terminal supports them.

Parameters

dashboard ConsoleMonster.Widgets.Dashboard required
The instance.
item ConsoleMonster.Widgets.FooterSegment required
The item.

Returns

Dashboard The same instance.
public static Dashboard FooterSegments(Dashboard dashboard, IEnumerable<FooterSegment> items) #

Adds items to Dashboard.FooterSegments: Links and notes on the right of the footer (a report, the docs), as links where the terminal supports them.

Parameters

dashboard ConsoleMonster.Widgets.Dashboard required
The instance.
items System.Collections.Generic.IEnumerable<ConsoleMonster.Widgets.FooterSegment> required
The items, in order.

Returns

Dashboard The same instance.
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 required
The instance.
value ConsoleMonster.Layout.Size required
The value.

Returns

Dashboard The same instance.

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 required
The instance.
value bool = true optional
The value; true when omitted.

Returns

Dashboard The same instance.

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 required
The instance.
value ConsoleMonster.Styling.StatusKind? required
The value.

Returns

Dashboard The same instance.

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 required
The instance.
value string? required
The value.

Returns

Dashboard The same instance.

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 required
The instance.
value string required
The value.

Returns

Dashboard The same instance.

Examples

// C# initializer or property                                      // C# fluent
new global::ConsoleMonster.Widgets.Dashboard { Title = value };    Ui.Dashboard().Title(value);