BadgeStyle

Collection of Badge Style Definitions to display in a Badge Styled Column

TypeScript
export interface

Properties

PropertyTypeDescriptionDefault
BadgesBadgeStyleDefinition[]Collection of Badge Style Definitions
CellCellBoxStyleOptional cell-box styling applied to grid cell behind the badges
DensityBadgeDensityDensity preset shared by every badge in the column - controls inner padding.'Normal'
FontCellFontStyleOptional column-level Font (only Alignment is meaningful for Badge cells)
OverflowModeBadgeOverflowModeHow badges lay out in array-column cells where space is tight'Truncate'
SpacingnumberPixel gap between adjacent badges in array-column cells4

Property Details

Badges

Collection of Badge Style Definitions

TypeScript
Badges?: BadgeStyleDefinition[];
Property Value

BadgeStyleDefinition[]

Cell

Optional cell-box styling applied to grid cell behind the badges

TypeScript
Cell?: CellBoxStyle;
Property Value

CellBoxStyle

Density

Density preset shared by every badge in the column - controls inner padding.

TypeScript
Density?: BadgeDensity;
Default Value

'Normal'

Property Value

BadgeDensity

Font

Optional column-level Font (only Alignment is meaningful for Badge cells)

TypeScript
Font?: CellFontStyle;
Property Value

CellFontStyle

OverflowMode

How badges lay out in array-column cells where space is tight

TypeScript
OverflowMode?: BadgeOverflowMode;
Default Value

'Truncate'

Property Value

BadgeOverflowMode

Spacing

Pixel gap between adjacent badges in array-column cells

TypeScript
Spacing?: number;
Default Value

4

Property Value

number