@brickclay-org/ui 0.0.99 → 0.0.100
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3679,7 +3679,10 @@ class BkGrid {
|
|
|
3679
3679
|
}
|
|
3680
3680
|
/* ================= Badges ================= */
|
|
3681
3681
|
getBadge(row, column) {
|
|
3682
|
-
|
|
3682
|
+
if (!column.badges)
|
|
3683
|
+
return undefined;
|
|
3684
|
+
const list = typeof column.badges === 'function' ? column.badges(row) : column.badges;
|
|
3685
|
+
return list.find((b) => b.label === this.getCellValue(row, column));
|
|
3683
3686
|
}
|
|
3684
3687
|
/* ================= Icons ================= */
|
|
3685
3688
|
getIcons(row, column) {
|