Cmdlet
New-ConsolePanel
Creates a bordered panel with a title around other console widgets.
Syntax
New-ConsolePanel [-Border <Rounded|Single|Double|Heavy|Ascii>] [-Caption <Object>] [[-Content] <ScriptBlock>] [-Fill] [-Footer <Object>] [-Height <Int32>] [-Title <Object>] [-Weight <Double>] [-Widget <IWidget>] [<CommonParameters>]#Parameter set:
All Parameter SetsDescription
Creates a bordered panel with a title around other console widgets.
The scriptblock emits the panel content (several widgets are stacked vertically). Borders follow the detected glyph tier: rounded on modern fonts, single lines on Consolas, +-| in ASCII mode. Inside New-ConsoleColumns, panels share the row height.
Examples
EXAMPLE 1
New-ConsolePanel -Border 'Value'Parameters
- -Border BoxStyle
- Border style: Rounded, Single, Double, Heavy, Ascii or None.
- Possible values:
Rounded,Single,Double,Heavy,Ascii - -Caption Object
- Text on the right of the top border, for example a count.
- -Content ScriptBlock
- Scriptblock that emits the panel content.
- -Fill SwitchParameter
- Take the remaining height of a live dashboard (for example a log).
- Text on the right of the bottom border.
- -Height Int32
- Fixed height in rows, including the border.
- -Title Object
- The title shown in the top border (Spectre-style markup allowed).
- -Weight Double
- Share of the width (in columns) or height (in a live dashboard) this panel takes.
- -Widget IWidget
- A widget to use as content instead of a scriptblock.
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.