A text chip with an optional icon, which will be displayed on the facades of cards.

Function argument - an object that provides all available functions of the web SDK.
Return value - the function should return array object with the following keys:
| Key | Type | Description |
|---|---|---|
| textrequired | string | Chip text |
| color | enum | Chip color green ![]() red ![]() orange ![]() undefined(default color) ![]() |
| icon | string | The URL of the icon that will be displayed to the left of the text.![]() |
Example :
'card_facade_badges': async (context) => {
const timerStartTime = await context.getData('card', 'private', 'timerStartTime');
if (!timerStartTime) {
return {
text: 'π΄timer is off',
color: 'red',
}
}
return {
text: 'π’ timer is on',
color: 'green',
}
},