Skip to content
ConsoleMonster
Class

AppScreenFluent

ConsoleMonster.Interactive

Namespace
ConsoleMonster.Interactive
Assembly
ConsoleMonster
Modifiers
static

The fluent methods of AppScreen, 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
  • AppScreenFluent

Methods

public static AppScreen Binding(AppScreen appScreen, KeyBinding item) #

Adds an item to AppScreen.Bindings: Keys that apply while this is the current screen. They reach the screen after the focused input and feed the footer.

Parameters

appScreen ConsoleMonster.Interactive.AppScreen required
The instance.
item ConsoleMonster.Interactive.KeyBinding required
The item.

Returns

AppScreen The same instance.
public static AppScreen Bindings(AppScreen appScreen, IEnumerable<KeyBinding> items) #

Adds items to AppScreen.Bindings: Keys that apply while this is the current screen. They reach the screen after the focused input and feed the footer.

Parameters

appScreen ConsoleMonster.Interactive.AppScreen required
The instance.
items System.Collections.Generic.IEnumerable<ConsoleMonster.Interactive.KeyBinding> required
The items, in order.

Returns

AppScreen The same instance.
public static AppScreen Title(AppScreen appScreen, string value) #

Sets AppScreen.Title: The breadcrumb title.

Parameters

appScreen ConsoleMonster.Interactive.AppScreen required
The instance.
value string required
The value.

Returns

AppScreen The same instance.

Examples

// C# initializer or property    // C# fluent
appScreen.Title = value;         appScreen.Title(value);
public static AppScreen TitleBy(AppScreen appScreen, Func<AppState, string>? value) #

Sets AppScreen.TitleSource: Builds the title from state instead, for a screen that shows one item ("web-deploy"). Runs on the app thread.

Parameters

appScreen ConsoleMonster.Interactive.AppScreen required
The instance.
value System.Func<ConsoleMonster.Interactive.AppState, string>? required
The callback.

Returns

AppScreen The same instance.

Examples

// C# initializer or property     // C# fluent
appScreen.TitleSource = value;    appScreen.TitleBy(value);