Skip to content
ConsoleMonster
Cmdlet

New-ConsoleRows

Module ConsoleMonster
Inputs
None
Outputs
ConsoleMonster.Layout.IWidget

Stacks console widgets vertically.

Syntax

New-ConsoleRows [-Content] <ScriptBlock> [-Fill] [-Gap <Int32>] [-Weight <Double>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Description

Stacks console widgets vertically.

Children emitted by the scriptblock are placed top to bottom. In a live dashboard, children created with -Fill or -Weight share the remaining height.

Examples

Authored help example

EXAMPLE 1

New-ConsoleRows -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 rows between children.
-Weight Double optional
Share of the space this group takes inside its parent.

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.