Skip to content

Commit

Permalink
Update grid and enterprise.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdriscoll committed Apr 2, 2020
1 parent 1e3e13a commit b60a004
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 2 additions & 4 deletions src/poshud/dashboard.psm1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#$Cache:Enterprise = $null -ne (Get-Module UniversalDashboard -ErrorAction SilentlyContinue)
$Cache:Enterprise = $Cache:Enterprise -or $null -ne (Get-Module UniversalDashboard -ErrorAction SilentlyContinue)
$Cache:Help = @{}
function New-ComponentPage {
param(
Expand Down Expand Up @@ -117,9 +117,7 @@ function New-Example {
minHeight = '100px'
width = '100%'
}
} -Content {
& $Example
}
} -Content $Example
}

New-UDPaper -Children {
Expand Down
5 changes: 4 additions & 1 deletion src/poshud/pages/layout/grid.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ New-UDDynamic -Id 'spacingGrid' -Content {
}

New-UDSelect -Id 'spacingSelect' -Label Spacing -Option {
0..10 | ForEach-Object { New-UDSelectOption -Name $_ -Value $_ }
for($i = 0; $i -lt 10; $i++)
{
New-UDSelectOption -Name $i -Value $i
}
} -OnChange { Sync-UDElement -Id 'spacingGrid' } -DefaultValue 3

}
Expand Down

0 comments on commit b60a004

Please sign in to comment.