Counters allow you to show numbers in a card with icons and formatting.
New-UDCounter -Title "Basic" -Endpoint {
1
}
New-UDCounter -Title "Autorefresh" -AutoRefresh -RefreshInterval 1 -Endpoint {
Get-Random
}
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
}
New-UDCounter -Title "Icon" -Format '$0,0.00' -Endpoint {
Get-Random
} -Icon dollar