Skip to content
ConsoleMonster
Class

HeaderBarFluent

ConsoleMonster.Widgets

Namespace
ConsoleMonster.Widgets
Assembly
ConsoleMonster
Modifiers
static

The fluent methods of HeaderBar, 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
  • HeaderBarFluent

Methods

public static HeaderBar Crumb(HeaderBar headerBar, string item) #

Adds an item to HeaderBar.Crumbs: Breadcrumb steps after the title, plain text ("Tasks", "Review & run"). Left empty inside an app with AppScreens, the bar shows the open screens.

Parameters

headerBar ConsoleMonster.Widgets.HeaderBar required
The instance.
item string required
The item.

Returns

HeaderBar The same instance.
public static HeaderBar Crumbs(HeaderBar headerBar, IEnumerable<string> items) #

Adds items to HeaderBar.Crumbs: Breadcrumb steps after the title, plain text ("Tasks", "Review & run"). Left empty inside an app with AppScreens, the bar shows the open screens.

Parameters

headerBar ConsoleMonster.Widgets.HeaderBar required
The instance.
items System.Collections.Generic.IEnumerable<string> required
The items, in order.

Returns

HeaderBar The same instance.
public static HeaderBar Detail(HeaderBar headerBar, string? value) #

Sets HeaderBar.Detail: Status text on the right (markup).

Parameters

headerBar ConsoleMonster.Widgets.HeaderBar required
The instance.
value string? required
The value.

Returns

HeaderBar The same instance.

Examples

// C# initializer or property    // C# fluent
headerBar.Detail = value;        Ui.HeaderBar().Detail(value);
public static HeaderBar Elapsed(HeaderBar headerBar, TimeSpan? value) #

Sets HeaderBar.Elapsed: The clock value; null uses the render context's elapsed time.

Parameters

headerBar ConsoleMonster.Widgets.HeaderBar required
The instance.
value System.TimeSpan? required
The value.

Returns

HeaderBar The same instance.

Examples

// C# initializer or property    // C# fluent
headerBar.Elapsed = value;       Ui.HeaderBar().Elapsed(value);
public static HeaderBar HeaderRight(HeaderBar headerBar, string? value) #

Sets HeaderBar.HeaderRight: Plain text on the right, before the clock (an app's subtitle, a step count).

Parameters

headerBar ConsoleMonster.Widgets.HeaderBar required
The instance.
value string? required
The value.

Returns

HeaderBar The same instance.

Examples

// C# initializer or property     // C# fluent
headerBar.HeaderRight = value;    Ui.HeaderBar().HeaderRight(value);
public static HeaderBar ShowElapsed(HeaderBar headerBar, bool value = true) #

Sets HeaderBar.ShowElapsed: Shows the elapsed clock on the right.

Parameters

headerBar ConsoleMonster.Widgets.HeaderBar required
The instance.
value bool = true optional
The value; true when omitted.

Returns

HeaderBar The same instance.

Examples

// C# initializer or property     // C# fluent
headerBar.ShowElapsed = value;    Ui.HeaderBar().ShowElapsed(value);
public static HeaderBar Status(HeaderBar headerBar, StatusKind? value) #

Sets HeaderBar.Status: The status kind; its marker goes before the status text.

Parameters

headerBar ConsoleMonster.Widgets.HeaderBar required
The instance.
value ConsoleMonster.Styling.StatusKind? required
The value.

Returns

HeaderBar The same instance.

Examples

// C# initializer or property    // C# fluent
headerBar.Status = value;        Ui.HeaderBar().Status(value);
public static HeaderBar Subtitle(HeaderBar headerBar, string? value) #

Sets HeaderBar.Subtitle: A subtitle after the title, separated by a dot (markup).

Parameters

headerBar ConsoleMonster.Widgets.HeaderBar required
The instance.
value string? required
The value.

Returns

HeaderBar The same instance.

Examples

// C# initializer or property    // C# fluent
headerBar.Subtitle = value;      Ui.HeaderBar().Subtitle(value);
public static HeaderBar Title(HeaderBar headerBar, string value) #

Sets HeaderBar.Title: The title (markup).

Parameters

headerBar ConsoleMonster.Widgets.HeaderBar required
The instance.
value string required
The value.

Returns

HeaderBar The same instance.

Examples

// C# initializer or property    // C# fluent
headerBar.Title = value;         Ui.HeaderBar().Title(value);