Skip to content

BadgeWidget beta ​

Interface of @v12-engine/client

ts
export interface BadgeWidget extends WidgetRules

A circle or a square with a number or a few letters in it: a level, a count of stacks

Members ​

background ​

ts
background?: Value<string>;

CSS colour inside

badge ​

ts
badge: Value<string | number>;

A number, or a few letters: {level} and {name} in them are the unit's level and its type's name

border ​

ts
border?: Value<string> | 'owner';

CSS colour of its edge. None when left out

color ​

ts
color?: Value<string>;

CSS colour of the letters

shape ​

ts
shape?: 'circle' | 'square';

Shape of the badge, a circle or a square

size ​

ts
size?: number;

Pixels across. 18 when left out