From 96e0bc731fe244c71357c8c14182eb56e2eb8238 Mon Sep 17 00:00:00 2001 From: Shaun Lawrie Date: Thu, 5 Sep 2024 00:29:08 +1200 Subject: [PATCH] Fix layout demo --- PwshSpectreConsole/public/formatting/New-SpectreLayout.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PwshSpectreConsole/public/formatting/New-SpectreLayout.ps1 b/PwshSpectreConsole/public/formatting/New-SpectreLayout.ps1 index ebaca03..3599713 100644 --- a/PwshSpectreConsole/public/formatting/New-SpectreLayout.ps1 +++ b/PwshSpectreConsole/public/formatting/New-SpectreLayout.ps1 @@ -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