AppScreenFluent
ConsoleMonster.Interactive
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
- The instance.
- item ConsoleMonster.Interactive.KeyBinding
- The item.
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
- The instance.
- items System.Collections.Generic.IEnumerable<ConsoleMonster.Interactive.KeyBinding>
- The items, in order.
public static AppScreen Title(AppScreen appScreen, string value) #Sets AppScreen.Title: The breadcrumb title.
Parameters
- appScreen ConsoleMonster.Interactive.AppScreen
- The instance.
- value string
- The value.
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
- The instance.
- value System.Func<ConsoleMonster.Interactive.AppState, string>?
- The callback.
Examples
// C# initializer or property // C# fluent
appScreen.TitleSource = value; appScreen.TitleBy(value);