Command
New-ImageTimelineBlock
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 SetsExamples
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 300Items can arrive through the pipeline; Width and Height size the block for a grid panel.
Parameters
- -Compact SwitchParameter
- Render event rows without card-like surfaces.
- -Height Int32
- Block height in pixels. The width keeps its default unless -Width is also supplied.
- -Item ActivityTimelineItem[]
- Timeline items supplied directly or through the pipeline.
- -ItemDefinition ScriptBlock
- Script block that emits items from New-ImageTimelineItem.
- -Subtitle String
- Optional block subtitle.
- -Theme ChartTheme
- ChartForgeX theme.
- Possible values:
Default,Dark,Light,Colorblind,Aurora,Editorial,Candy,PeopleInfographic,Terminal,TransparentOverlayDark,Minimal,DashboardLight,SaasDashboardLight,RestaurantDashboardLight - -Title String
- Optional block title.
- -Width Int32
- 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.