Skip to content
ChartForgeX
Command

New-ImageTimelineBlock

Module imageplayground
Inputs
ChartForgeX.VisualBlocks.ActivityTimelineItem[]
Outputs
ChartForgeX.VisualBlocks.ActivityTimelineBlock

Creates an activity timeline block.

Syntax

New-ImageTimelineBlock [-Compact] [-Height <Int32>] [-Item <ActivityTimelineItem[]>] [-ItemDefinition <ScriptBlock>] [-Subtitle <String>] [-Theme <ChartTheme>] [-Title <String>] [-Width <Int32>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Examples

Authored help example

Create a release activity feed

New-ImageTimelineBlock -Title 'Release activity' -ItemDefinition { New-ImageTimelineItem -Kind Event -Title 'Build completed' -Status Positive; New-ImageTimelineItem -Kind ChecklistItem -Title 'Smoke tests' -Completed }

Pipe timeline items and size the block

$deployments | ForEach-Object { New-ImageTimelineItem -Kind Event -Title $_.Name -Timestamp $_.Time -Status Positive } | New-ImageTimelineBlock -Title Deployments -Width 420 -Height 300

Items can arrive through the pipeline; Width and Height size the block for a grid panel.

Parameters

-Compact SwitchParameter optional
Render event rows without card-like surfaces.
-Height Int32 optional
Block height in pixels. The width keeps its default unless -Width is also supplied.
-Item ActivityTimelineItem[] optionalpipeline: True (ByValue)
Timeline items supplied directly or through the pipeline.
-ItemDefinition ScriptBlock optional
Script block that emits items from New-ImageTimelineItem.
-Subtitle String optional
Optional block subtitle.
-Theme ChartTheme optional
ChartForgeX theme.
Possible values: Default, Dark, Light, Colorblind, Aurora, Editorial, Candy, PeopleInfographic, Terminal, TransparentOverlayDark, Minimal, DashboardLight, SaasDashboardLight, RestaurantDashboardLight
-Title String optional
Optional block title.
-Width Int32 optional
Block width in pixels. The height keeps its default unless -Height is also supplied.

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.