Examples/11_SimpleLayout.ps1
|
Import-Module "$PSScriptRoot\..\PowerShellRich.psd1" -Force $layout = New-RichLayout -Name "root" Split-RichLayout -Layout $layout -Direction "Horizontal" -Names "left", "right" $null = Update-RichLayout -Layout $layout -Name "left" -Content "Left Side" $null = Update-RichLayout -Layout $layout -Name "right" -Content "Right Side" $rendered = Format-RichLayout -Layout $layout -Width 40 -Height 5 $rendered | ForEach-Object { Write-Host $_ } |