Skip to content

Commit

Permalink
Fix layout demo
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaunLawrie committed Sep 4, 2024
1 parent 0ff2048 commit 96e0bc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PwshSpectreConsole/public/formatting/New-SpectreLayout.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ The minimum size of the layout, this can be used to ensure a layout is at least
.EXAMPLE
# **Example 1** # This example demonstrates how to create a layout with a calendar, a list of files, and a panel with a calendar aligned to the middle and center.
$calendar = Write-SpectreCalendar -Date (Get-Date) -PassThru
$files = Get-ChildItem | Format-SpectreTable | Format-SpectreAligned -HorizontalAlignment Right -VerticalAlignment Bottom
$files = Get-ChildItem | Select-Object Name, LastWriteTime -First 3 | Format-SpectreTable | Format-SpectreAligned -HorizontalAlignment Right -VerticalAlignment Bottom
$panel1 = $files | Format-SpectrePanel -Header "panel 1 (align bottom right)" -Expand -Color Green
$panel2 = "hello row 2" | Format-SpectrePanel -Header "panel 2" -Expand -Color Blue
Expand Down

0 comments on commit 96e0bc7

Please sign in to comment.