Skip to content
ConsoleMonster
Cmdlet

New-ConsoleTab

Module
ConsoleMonster
Inputs
System.Object
Outputs
ConsoleMonster.Widgets.LayoutRegion

Creates a retained tab page for New-ConsoleTabs.

Syntax

New-ConsoleTab
[[-Content] <Object>]
-Title <String>
[<CommonParameters>]
#
Parameter set: All Parameter Sets

Description

Collects the page widgets once and preserves their input values when another tab is selected. Pass the page to New-ConsoleTabs to mount it in a full-screen application.

Examples

Example 1

New-ConsoleTab -Title Services -Content { New-ConsoleTextInput -Key Filter }

Create a page.

Parameters

-Content Object optionalposition: 0pipeline: True (ByValue)
Widgets or a script block that emits the page's retained inputs.
-Title String required
Unique tab label.

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.