Skip to content
ConsoleMonster
Cmdlet

New-ConsoleScrollView

Module
ConsoleMonster
Inputs
ConsoleMonster.Layout.IWidget
Outputs
ConsoleMonster.Layout.IWidget

Creates a clipped vertical viewport for a small widget tree inside an app.

Syntax

New-ConsoleScrollView
[[-Content] <Object>]
[-Fill]
[-Height <Int32>]
[-MaxContentHeight <Int32>]
[-ScrollOffset <Int32>]
[-Weight <Double>]
[-Widget <IWidget>]
[<CommonParameters>]
#
Parameter set: All Parameter Sets

Description

Mouse wheel scrolls the viewport. Tab navigation reveals focused inputs. Lists, grids and logs keep their own row windows for large data.

Examples

Example 1

New-ConsoleScrollView -Content { $details } -Height 12

A scrollable detail pane.

Parameters

-Content Object optionalposition: 0
Widgets, text, objects, or a script block that emits them.
-Fill SwitchParameter optional
Use the available height.
-Height Int32 optional
Fixed viewport height in cells.
-MaxContentHeight Int32 optional
Maximum composed rows for ordinary content; use virtualized lists or grids for larger data.
-ScrollOffset Int32 optional
First visible content row.
-Weight Double optional
Share of the parent layout.
-Widget IWidget optionalpipeline: True (ByValue)
A widget supplied through the pipeline.

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.