Format-SpectreRows
Description
This function creates a spectre rows widget that renders a collection of renderables in autosized rows to the console.
Rows can contain renderable items.
See https://spectreconsole.net/widgets/rows for more information.
Examples
Example 1
This example demonstrates how to display a collection of strings in rows.
Example 2
This example demonstrates how to display a collection of renderable items as rows inside a panel, without wrapping the renderables in rows you cannot display them in a panel because a panel only accepts a single item.
Parameters
Data
An array of renderable items containing the data to be displayed in the rows.
Type | Required | Position | PipelineInput |
---|---|---|---|
[Object] | true | 1 | true (ByValue) |
Expand
Type | Required | Position | PipelineInput |
---|---|---|---|
[Switch] | false | named | false |