GridOptionsFluent
ConsoleMonster.Interactive
The fluent methods of GridOptions, generated from its public properties: A property-named method sets a property and Add... adds to a collection, both returning the same instance.
Inheritance
- object
- GridOptionsFluent
Methods
public static GridOptions AddCommand(GridOptions gridOptions, AppCommand item) #Adds an item to GridOptions.Command: Commands available through the action palette and their shortcuts. Actions keep the grid open.
Parameters
- gridOptions ConsoleMonster.Interactive.GridOptions
- The instance.
- item ConsoleMonster.Interactive.AppCommand
- The item.
public static GridOptions AddCommand(GridOptions gridOptions, params AppCommand[] items) #Adds items to GridOptions.Command: Commands available through the action palette and their shortcuts. Actions keep the grid open.
Parameters
- gridOptions ConsoleMonster.Interactive.GridOptions
- The instance.
- items ConsoleMonster.Interactive.AppCommand[]
- The items, in order.
public static GridOptions AddCommand(GridOptions gridOptions, IEnumerable<AppCommand> items) #Adds items to GridOptions.Command: Commands available through the action palette and their shortcuts. Actions keep the grid open.
Parameters
- gridOptions ConsoleMonster.Interactive.GridOptions
- The instance.
- items System.Collections.Generic.IEnumerable<ConsoleMonster.Interactive.AppCommand>
- The items, in order.
public static GridOptions Configure(GridOptions gridOptions, Action<GridOptions> configure) #Assigns callbacks and related configuration without invoking delegate-valued properties.
Parameters
- gridOptions ConsoleMonster.Interactive.GridOptions
- The instance.
- configure System.Action<ConsoleMonster.Interactive.GridOptions>
- Assignments applied in order.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.GridOptions { RefreshRow = value }; Ui.Options<global::ConsoleMonster.Interactive.GridOptions>().Configure(configured => configured.RefreshRow = value);public static GridOptions Dispatcher(GridOptions gridOptions, AppDispatcher? value) #Sets GridOptions.Dispatcher: Optional per-run mailbox, drained on the input thread and closed when the grid exits.
Parameters
- gridOptions ConsoleMonster.Interactive.GridOptions
- The instance.
- value ConsoleMonster.Interactive.AppDispatcher?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.GridOptions { Dispatcher = value }; Ui.Options<global::ConsoleMonster.Interactive.GridOptions>().Dispatcher(value);public static GridOptions Filter(GridOptions gridOptions, string? value) #Sets GridOptions.Filter: The filter to start with.
Parameters
- gridOptions ConsoleMonster.Interactive.GridOptions
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.GridOptions { Filter = value }; Ui.Options<global::ConsoleMonster.Interactive.GridOptions>().Filter(value);public static GridOptions Interactive(GridOptions gridOptions, InteractiveOptions? value) #Sets GridOptions.Interactive: Prompt options (input, capture, theme, labels); null for the defaults.
Parameters
- gridOptions ConsoleMonster.Interactive.GridOptions
- The instance.
- value ConsoleMonster.Interactive.InteractiveOptions?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.GridOptions { Interactive = value }; Ui.Options<global::ConsoleMonster.Interactive.GridOptions>().Interactive(value);public static GridOptions Interactive(GridOptions gridOptions, Action<InteractiveOptions> configure) #Configures GridOptions.Interactive in place (creating it when not set): Prompt options (input, capture, theme, labels); null for the defaults.
Parameters
- gridOptions ConsoleMonster.Interactive.GridOptions
- The instance.
- configure System.Action<ConsoleMonster.Interactive.InteractiveOptions>
- Configures the value.
public static GridOptions SortColumn(GridOptions gridOptions, int value) #Sets GridOptions.SortColumn: The column to sort by at the start (by index), or -1 for the input order.
Parameters
- gridOptions ConsoleMonster.Interactive.GridOptions
- The instance.
- value int
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.GridOptions { SortColumn = value }; Ui.Options<global::ConsoleMonster.Interactive.GridOptions>().SortColumn(value);public static GridOptions SortDescending(GridOptions gridOptions, bool value) #Sets GridOptions.SortDescending: Sorts descending at the start.
Parameters
- gridOptions ConsoleMonster.Interactive.GridOptions
- The instance.
- value bool
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.GridOptions { SortDescending = value }; Ui.Options<global::ConsoleMonster.Interactive.GridOptions>().SortDescending(value);public static GridOptions SortDescending(GridOptions gridOptions) #Sets GridOptions.SortDescending to true.
Parameters
- gridOptions ConsoleMonster.Interactive.GridOptions
- The instance to configure.