Skip to content

Commit bd2d2c3

Browse files
committed
Working with UD Dashboards
1 parent 1eeba66 commit bd2d2c3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

UDworking.ps1

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Start-UdDashboard -AutoReload -port 8080 -Content {
99

1010
$Page1 = New-UDPage -Name "Home" -Icon home -Content { New-UDCard }
1111
$Page2 = New-UDPage -Name "Links" -Icon link -Content { New-UDCard }
12-
New-UDDashboard @colors -Pages @($Page1, $Page2)
12+
#New-UDDashboard @colors -Pages @($Page1, $Page2)
1313

1414

1515

@@ -128,10 +128,13 @@ New-UDDashboard @colors -Pages @($Page1, $Page2)
128128
New-UdRow {
129129
New-UdColumn -Size 12 {
130130
New-UdGrid -Title "Processes" @colors -Headers @("Name", "ID", "Working Set", "CPU") -Properties @("Name", "Id", "WorkingSet", "CPU") -AutoRefresh -RefreshInterval 60 -Endpoint {
131-
Get-Process | Out-UDGridData
131+
Get-Process | sort cpu | Out-UDGridData
132132
}
133133
}
134134
}
135+
136+
137+
135138
}
136139
}
137140
}

0 commit comments

Comments
 (0)