Count Cards
Configuring count cards in Umbraco UI Builder, the backoffice UI builder for Umbraco.
Adding a count card to a collection
AddCard(string name, Lambda whereClauseExpression, Lambda cardConfig = null) : CardConfigBuilder
// Example
collectionConfig.AddCard("Older than 30", p => p.Age > 30, cardConfig => {
...
});AddCard(string name, string icon, Lambda whereClauseExpression, Lambda cardConfig = null) : CardConfigBuilder
// Example
collectionConfig.AddCard("Older than 30", "icon-umb-users", p => p.Age > 30, cardConfig => {
...
});Change the color of a count card
SetColor(string color) : CardConfigBuilder
Add a suffix to a count value
SetSuffix(string suffix) : CardConfigBuilder
Formatting the value of a count
SetFormat(Lambda formatExpression) : CardConfigBuilder
Last updated
Was this helpful?