Skip to content
ConsoleMonster
Cmdlet

New-ConsoleColumns

Module ConsoleMonster
Inputs
None
Outputs
ConsoleMonster.Layout.IWidget

Places console widgets side by side.

Syntax

New-ConsoleColumns [-Content] <ScriptBlock> [-Fill] [-Gap <Int32>] [-Height <Int32>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Description

Places console widgets side by side.

Children share the width equally unless they were created with -Weight. Children in a row share their height. On narrow terminals the columns stack vertically instead of squeezing content.

Examples

Authored help example

EXAMPLE 1

New-ConsoleColumns -Content { }

Parameters

-Content ScriptBlock requiredposition: 0
Scriptblock that emits the child widgets.
-Fill SwitchParameter optional
Take the remaining height of a live dashboard.
-Gap Int32 optional
Blank columns between children (default 1).
-Height Int32 optional
Fixed height in rows for this row of columns.

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.