HeaderBarFluent
ConsoleMonster.Widgets
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
- The instance.
- item string
- The item.
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
- The instance.
- items System.Collections.Generic.IEnumerable<string>
- The items, in order.
public static HeaderBar Detail(HeaderBar headerBar, string? value) #Sets HeaderBar.Detail: Status text on the right (markup).
Parameters
- headerBar ConsoleMonster.Widgets.HeaderBar
- The instance.
- value string?
- The value.
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
- The instance.
- value System.TimeSpan?
- The value.
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
- The instance.
- value string?
- The value.
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
- The instance.
- value bool = true
- The value; true when omitted.
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
- The instance.
- value ConsoleMonster.Styling.StatusKind?
- The value.
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
- The instance.
- value string?
- The value.
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
- The instance.
- value string
- The value.
Examples
// C# initializer or property // C# fluent
headerBar.Title = value; Ui.HeaderBar().Title(value);