Skip to content
ConsoleMonster
Class

FooterBarFluent

ConsoleMonster.Widgets

Namespace
ConsoleMonster.Widgets
Assembly
ConsoleMonster
Modifiers
static

The fluent methods of FooterBar, 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
  • FooterBarFluent

Methods

public static FooterBar FixedSlots(FooterBar footerBar, bool value = true) #

Sets FooterBar.FixedSlots: Keeps every registry entry in a fixed slot, shortening labels rather than hiding unavailable or trailing commands.

Parameters

footerBar ConsoleMonster.Widgets.FooterBar required
The instance.
value bool = true optional
The value; true when omitted.

Returns

FooterBar The same instance.

Examples

// C# initializer or property                                           // C# fluent
new global::ConsoleMonster.Widgets.FooterBar { FixedSlots = value };    Ui.FooterBar().FixedSlots(value);
public static FooterBar Hint(FooterBar footerBar, KeyHint item) #

Adds an item to FooterBar.Hints: The hints, in order.

Parameters

footerBar ConsoleMonster.Widgets.FooterBar required
The instance.
item ConsoleMonster.Widgets.KeyHint required
The item.

Returns

FooterBar The same instance.
public static FooterBar Hints(FooterBar footerBar, IEnumerable<KeyHint> items) #

Adds items to FooterBar.Hints: The hints, in order.

Parameters

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

Returns

FooterBar The same instance.
public static FooterBar HintsBy(FooterBar footerBar, Func<IEnumerable<KeyHint>>? value) #

Sets FooterBar.HintsSource: Reads current registry hints at render time, for example from the focused panel or active dialog. In an app, a footer with neither hints nor a source shows the app's key bindings.

Parameters

footerBar ConsoleMonster.Widgets.FooterBar required
The instance.
value System.Func<System.Collections.Generic.IEnumerable<ConsoleMonster.Widgets.KeyHint>>? required
The callback.

Returns

FooterBar The same instance.

Examples

// C# initializer or property                                            // C# fluent
new global::ConsoleMonster.Widgets.FooterBar { HintsSource = value };    Ui.FooterBar().HintsBy(value);
public static FooterBar Indent(FooterBar footerBar, int value) #

Sets FooterBar.Indent: The first column (default 1).

Parameters

footerBar ConsoleMonster.Widgets.FooterBar required
The instance.
value int required
The value.

Returns

FooterBar The same instance.

Examples

// C# initializer or property                                       // C# fluent
new global::ConsoleMonster.Widgets.FooterBar { Indent = value };    Ui.FooterBar().Indent(value);
public static FooterBar KeepLast(FooterBar footerBar, bool value = true) #

Sets FooterBar.KeepLast: Keeps the last hint (the key map) when others have to be dropped.

Parameters

footerBar ConsoleMonster.Widgets.FooterBar required
The instance.
value bool = true optional
The value; true when omitted.

Returns

FooterBar The same instance.

Examples

// C# initializer or property                                         // C# fluent
new global::ConsoleMonster.Widgets.FooterBar { KeepLast = value };    Ui.FooterBar().KeepLast(value);
public static FooterBar Message(FooterBar footerBar, StyledLine? value) #

Sets FooterBar.Message: A line shown instead of the hints (a toast), or null.

Parameters

footerBar ConsoleMonster.Widgets.FooterBar required
The instance.
value ConsoleMonster.Text.StyledLine? required
The value.

Returns

FooterBar The same instance.

Examples

// C# initializer or property                                        // C# fluent
new global::ConsoleMonster.Widgets.FooterBar { Message = value };    Ui.FooterBar().Message(value);
public static FooterBar Right(FooterBar footerBar, StyledLine? value) #

Sets FooterBar.Right: Text on the right, or null.

Parameters

footerBar ConsoleMonster.Widgets.FooterBar required
The instance.
value ConsoleMonster.Text.StyledLine? required
The value.

Returns

FooterBar The same instance.

Examples

// C# initializer or property                                      // C# fluent
new global::ConsoleMonster.Widgets.FooterBar { Right = value };    Ui.FooterBar().Right(value);
public static FooterBar Segment(FooterBar footerBar, FooterSegment item) #

Adds an item to FooterBar.Segments: Segments on the right (after FooterBar.Right), separated by a dot: a run id, a report link, a status.

Parameters

footerBar ConsoleMonster.Widgets.FooterBar required
The instance.
item ConsoleMonster.Widgets.FooterSegment required
The item.

Returns

FooterBar The same instance.
public static FooterBar Segments(FooterBar footerBar, IEnumerable<FooterSegment> items) #

Adds items to FooterBar.Segments: Segments on the right (after FooterBar.Right), separated by a dot: a run id, a report link, a status.

Parameters

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

Returns

FooterBar The same instance.