Counter

Universal Dashboard is now a part of PowerShell Universal. This documentation is for reference to the v2 version of Universal Dashboard and is no longer maintained. PowerShell Universal Documentation can be found here.

Counter

Counters allow you to show numbers in a card with icons and formatting.

Creating a basic counter

New-UDCounter -Title "Basic" -Endpoint {
1
}

Auto refreshing a counter

New-UDCounter -Title "Autorefresh" -AutoRefresh -RefreshInterval 1 -Endpoint {
Get-Random
}
Autorefreshing counter

Formatting numbers in a counter

UDCards use NumeralJS to format numbers. You can use any format you find on the NumeralJS format documentation.

New-UDCounter -Title "Formatting" -Format '$0,0.00' -Endpoint {
Get-Random
}

Showing an icon

New-UDCounter -Title "Icon" -Format '$0,0.00' -Endpoint {
Get-Random
} -Icon dollar