From 903f09279ad78c854605f18faba0657af3045769 Mon Sep 17 00:00:00 2001 From: Corban-Lee Jones Date: Mon, 30 Sep 2024 14:03:05 +0100 Subject: [PATCH] render boolean columns abstract func --- apps/home/static/home/js/tables.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/apps/home/static/home/js/tables.js b/apps/home/static/home/js/tables.js index 8d621cf..53d07ba 100644 --- a/apps/home/static/home/js/tables.js +++ b/apps/home/static/home/js/tables.js @@ -394,3 +394,11 @@ async function loadModalData($modal, url) { } }); } + + +// region Table Column Types + +function renderBooleanColumn(data) { + const iconClass = data ? "bi-check-circle-fill text-success" : "bi-x-circle-fill text-danger"; + return ``; +}