Skip to content
ConsoleMonster
Cmdlet

New-ConsoleLiveTable

Module ConsoleMonster
Inputs
None
Outputs
ConsoleMonster.Widgets.LiveTable

Creates a table whose rows change while a dashboard runs.

Syntax

New-ConsoleLiveTable [-Border <Rounded|Square|Double|Minimal>] [-Column <String[]>] [-Descending] [-MaxRows <Int32>] [[-Name] <String>] [-SortBy <Object>] [-Table <Table>] [-Title <Object>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Description

Creates a table whose rows change while a dashboard runs.

Rows have stable keys and are added, updated, removed or cleared with Update-ConsoleTable. Column widths only grow, so rows never jitter. -MaxRows keeps only the most recent rows; -SortBy keeps rows sorted by a column.

Examples

Authored help example

EXAMPLE 1

New-ConsoleLiveTable -Name 'Name'

Parameters

-Border TableBorder optional
The border style.
Possible values: Rounded, Square, Double, Minimal
-Column String[] optional
The column headers, in order.
-Descending SwitchParameter optional
Sorts from the largest value down.
-MaxRows Int32 optional
Keeps only the most recently added rows (0 keeps all).
-Name String optionalposition: 0
The live name used by Update-ConsoleTable (default table).
-SortBy Object optional
The column (header or index) to keep rows sorted by.
-Table Table optional
A table that defines the columns and options instead (for example from New-ConsoleTable); its rows are replaced.
-Title Object optional
A title above the table (markup).

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.