Counter

Last updated 4 months ago

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