Count Cards
Learn how to configure count cards in Umbraco UI Builder.
Adding a Count Card to a Collection
Using the AddCard() Method
AddCard() MethodMethod Syntax
AddCard(string name, Lambda whereClauseExpression, Lambda cardConfig = null) : CardConfigBuilderExample
collectionConfig.AddCard("Older than 30", p => p.Age > 30, cardConfig => {
...
});Using the AddCard() Method with Icon
AddCard() Method with IconMethod Syntax
Example
Change the Color of a Count Card
Using the SetColor() Method
SetColor() MethodMethod Syntax
Example
Add a Suffix to a Count Value
Using the SetSuffix() Method
SetSuffix() MethodMethod Syntax
Example
Formatting the Value of a Count
Using the SetFormat() Method
SetFormat() MethodMethod Syntax
Example
Last updated
Was this helpful?