GridOptions
ConsoleMonster.Interactive
Options for Grid.Show.
Inheritance
- object
- GridOptions
Usage
Explore 39 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 18
- Extension method GridOptions.Command
- Extension method GridOptions.Dispatcher
- Extension method GridOptions.Filter
- Extension method GridOptions.HiddenColumn
- Extension method GridOptions.HiddenColumns
- Extension method GridOptions.Interactive
- Extension method GridOptions.RefreshRowBy
- Extension method GridOptions.SortColumn
- Extension method GridOptions.SortDescending
- Method GridOptionsFluent.Command
- Method GridOptionsFluent.Dispatcher
- Method GridOptionsFluent.Filter
- Method GridOptionsFluent.HiddenColumn
- Method GridOptionsFluent.HiddenColumns
- Method GridOptionsFluent.Interactive
- Method GridOptionsFluent.RefreshRowBy
- Method GridOptionsFluent.SortColumn
- Method GridOptionsFluent.SortDescending
Accepted by parameters 21
- Method Grid.Show
- Method Grid.Show
- Method Grid.ShowInBrowser
- Extension method GridOptions.Command
- Extension method GridOptions.Dispatcher
- Extension method GridOptions.Filter
- Extension method GridOptions.HiddenColumn
- Extension method GridOptions.HiddenColumns
- Extension method GridOptions.Interactive
- Extension method GridOptions.RefreshRowBy
- Extension method GridOptions.SortColumn
- Extension method GridOptions.SortDescending
- Method GridOptionsFluent.Command
- Method GridOptionsFluent.Dispatcher
- Method GridOptionsFluent.Filter
- Method GridOptionsFluent.HiddenColumn
- Method GridOptionsFluent.HiddenColumns
- Method GridOptionsFluent.Interactive
- Method GridOptionsFluent.RefreshRowBy
- Method GridOptionsFluent.SortColumn
- Method GridOptionsFluent.SortDescending
Constructors
public GridOptions() #Inherited Methods
Properties
public IList<AppCommand> Command { get; } #Commands available through the action palette and their shortcuts. Actions keep the grid open.
public Func<AppCommand, GridRow, GridRow>? RefreshRow { get; set; } #Fluent("RefreshRowBy")Refreshes each acted-on row on the input thread after successful completion. Return a new snapshot in the same column order; selection and row position are retained. Keep this callback short.
public AppDispatcher? Dispatcher { get; set; } #Optional per-run mailbox, drained on the input thread and closed when the grid exits.
public InteractiveOptions? Interactive { get; set; } #Prompt options (input, capture, theme, labels); null for the defaults.
public int SortColumn { get; set; } #The column to sort by at the start (by index), or -1 for the input order.
Extension Methods
public static GridOptions Command(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 Command(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 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 }; 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 }; 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 }; 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 RefreshRowBy(GridOptions gridOptions, Func<AppCommand, GridRow, GridRow>? value) #Sets GridOptions.RefreshRow: Refreshes each acted-on row on the input thread after successful completion. Return a new snapshot in the same column order; selection and row position are retained. Keep this callback short.
Parameters
- gridOptions ConsoleMonster.Interactive.GridOptions
- The instance.
- value System.Func<ConsoleMonster.Interactive.AppCommand, ConsoleMonster.Interactive.GridRow, ConsoleMonster.Interactive.GridRow>?
- The callback.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.GridOptions { RefreshRow = value }; gridOptions.RefreshRowBy(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 }; gridOptions.SortColumn(value);public static GridOptions SortDescending(GridOptions gridOptions, bool value = true) #Sets GridOptions.SortDescending: Sorts descending at the start.
Parameters
- gridOptions ConsoleMonster.Interactive.GridOptions
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.GridOptions { SortDescending = value }; gridOptions.SortDescending(value);