Skip to content
ConsoleMonster
Class

LiveTableFluent

ConsoleMonster.Widgets

Namespace
ConsoleMonster.Widgets
Assembly
ConsoleMonster
Modifiers
static

The fluent methods of LiveTable, 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
  • LiveTableFluent

Methods

public static LiveTable Filter(LiveTable liveTable, string value) #

Sets LiveTable.Filter: Only show rows whose cell values contain each literal word before formatting, ignoring case. Empty restores the full table.

Parameters

liveTable ConsoleMonster.Widgets.LiveTable required
The instance.
value string required
The value.

Returns

LiveTable The same instance.

Examples

// C# initializer or property    // C# fluent
liveTable.Filter = value;        liveTable.Filter(value);
public static LiveTable KeyProperty(LiveTable liveTable, string? value) #

Sets LiveTable.KeyProperty: The input field used as the row key; null uses the first column's key or header.

Parameters

liveTable ConsoleMonster.Widgets.LiveTable required
The instance.
value string? required
The value.

Returns

LiveTable The same instance.

Examples

// C# initializer or property     // C# fluent
liveTable.KeyProperty = value;    liveTable.KeyProperty(value);
public static LiveTable MaxRows(LiveTable liveTable, int value) #

Sets LiveTable.MaxRows: Keeps only the most recently added rows (0, the default, keeps them all): a bounded "recent N" window.

Parameters

liveTable ConsoleMonster.Widgets.LiveTable required
The instance.
value int required
The value.

Returns

LiveTable The same instance.

Examples

// C# initializer or property    // C# fluent
liveTable.MaxRows = value;       liveTable.MaxRows(value);
public static LiveTable SortColumn(LiveTable liveTable, int? value) #

Sets LiveTable.SortColumn: The column index to keep rows sorted by, or null (default) for insertion order.

Parameters

liveTable ConsoleMonster.Widgets.LiveTable required
The instance.
value int? required
The value.

Returns

LiveTable The same instance.

Examples

// C# initializer or property    // C# fluent
liveTable.SortColumn = value;    liveTable.SortColumn(value);
public static LiveTable SortDescending(LiveTable liveTable, bool value = true) #

Sets LiveTable.SortDescending: Whether LiveTable.SortColumn sorts from the largest value down.

Parameters

liveTable ConsoleMonster.Widgets.LiveTable required
The instance.
value bool = true optional
The value; true when omitted.

Returns

LiveTable The same instance.

Examples

// C# initializer or property        // C# fluent
liveTable.SortDescending = value;    liveTable.SortDescending(value);
public static LiveTable Table(LiveTable liveTable, Action<Table> configure) #

Configures LiveTable.Table in place: The table that defines the columns, presenters and options.

Parameters

liveTable ConsoleMonster.Widgets.LiveTable required
The instance.
configure System.Action<ConsoleMonster.Widgets.Table> required
Configures the value.

Returns

LiveTable The same instance.