BadgeStyleDefinition

View as Markdown

Defines a Badge Style

TypeScript
export interface

Properties

PropertyTypeDescriptionDefault
IconPropertiesBadgeIconPropertiesSettings for Icon to display alongside badge text
PillStyleBadgePillStyleStyle for the Badge pill (cut-down version of Adaptable Style)
RulestringOptional AdapTableQL boolean expression for deciding whether Badge is displayed.
References to the Styled Column's own column resolve per cell value —
and, for array columns, per array element.
ShapeBadgeShapeVisual shape of the Badge's corner radius'Rounded'

Property Details

IconProperties

Settings for Icon to display alongside badge text

TypeScript
IconProperties?: BadgeIconProperties;
Property Value

BadgeIconProperties

PillStyle

Style for the Badge pill (cut-down version of Adaptable Style)

TypeScript
PillStyle?: BadgePillStyle;
Property Value

BadgePillStyle

Rule

Optional AdapTableQL boolean expression for deciding whether Badge is displayed. References to the Styled Column's own column resolve per cell value — and, for array columns, per array element.

TypeScript
Rule?: string;
Property Value

string

Shape

Visual shape of the Badge's corner radius

TypeScript
Shape?: BadgeShape;
Default Value

'Rounded'

Property Value

BadgeShape