Format-SpectreColumns
Description
This function creates a spectre columns widget that renders a collection of renderables in autosized columns to the console.
Columns can contain renderable items.
See https://spectreconsole.net/widgets/columns for more information.
Examples
Example 1
This example demonstrates how to display a collection of strings in columns.
Example 2
This example demonstrates how to display a collection of panels that are expanded but with normal sized columns.
Example 3
This example demonstrates how to display a collection of panels that are expanded and with expanded columns so it takes up the console width.
Parameters
Data
An array of objects containing the data to be displayed in the columns.
Type | Required | Position | PipelineInput |
---|---|---|---|
[Object] | true | 1 | true (ByValue) |
Padding
The padding to apply to the columns.
Type | Required | Position | PipelineInput |
---|---|---|---|
[Int32] | false | 2 | false |
Expand
A switch to expand the columns to fill the available space.
Type | Required | Position | PipelineInput |
---|---|---|---|
[Switch] | false | named | false |