Cmdlet
New-ConsoleTab
Creates a retained tab page for New-ConsoleTabs.
Syntax
New-ConsoleTab
[[-Content] <Object>]
-Title <String>
[<CommonParameters>]#Parameter set:
All Parameter SetsDescription
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
- Widgets or a script block that emits the page's retained inputs.
- -Title String
- 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.