Skip to content

Labels and Actions

Browse these live examples and open Code to inspect their configuration.

RendererWhen to use itConfigure on the column
countBadgeRendererHighlight positive counts and show an empty placeholder.countBadge.format, countBadge.empty
badgeRendererDisplay a value as a colored badge.badgeStyles
ratingStarRendererVisualize a numeric rating as stars.maxStars, ratingAriaLabel, ratingValueLabel
thumbsRendererDisplay a positive or negative vote.boolean-like cell value
avatarRendererDisplay an avatar or initials for a person.avatarProp, avatarLabelProp, avatarSize
avatarWithTextRendererShow an avatar alongside a person’s name.avatarProp, avatarLabelProp, avatarSize
identityCellRendererShow an entity label with optional detail and image.identityCell.format, optional onActivate
entityCellRendererSelect identity or group presentation by row.entityCell.format, optional onActivate
metricStackRendererShow a primary value with supporting text and an optional icon.metricStack.format
cellActionRendererExpose a labeled row action.cellAction
statusActionRendererProvide a compact action with a status and label.statusAction
choiceStatusRendererDisplay an actionable status choice or summary.choiceStatus
heatActionRendererCombine a heat-colored value with a labeled action.heatAction
visualCellRendererChoose a visual presentation based on the row.visualCell.format, optional onActivate
groupRailRendererShow an expandable group rail with custom details.groupRail
groupSummaryRendererShow an expandable group summary and selectable segments.groupSummary

Use countBadgeRenderer for values such as open roles. Positive numbers appear as badges; zero, missing, negative, and invalid values use the empty placeholder. Format numbers and provide the empty label in the host locale:

import { countBadgeRenderer } from '@revolist/revogrid-pro';
const column = {
prop: 'openRoles',
cellTemplate: countBadgeRenderer,
countBadge: {
format: (count) => new Intl.NumberFormat('en').format(count),
empty: '—',
},
};

Customize its colors using --rv-count-badge-background, --rv-count-badge-border, and --rv-count-badge-color.

Use metricStackRenderer for a metric with a decorative icon and supporting text, such as a match count and its reporting period. Choose icon: 'activity', or provide a function that renders your own icon. align: 'start' places the content at the leading edge, and muted dims inactive rows. The value and period text come from the host. See metricStackRenderer in the examples above.

{
prop: 'matches',
cellTemplate: metricStackRenderer,
metricStack: {
format: (value, row) => ({
value: String(value), detail: '7d', icon: 'activity',
layout: 'inline', align: 'start', muted: !row.enabled,
}),
},
}