New Changes with Table Component
This commit is contained in:
@@ -167,9 +167,9 @@ const id = `table-${Math.random().toString(36).slice(2, 9)}`;
|
|||||||
tbody.innerHTML = "";
|
tbody.innerHTML = "";
|
||||||
mobileBody.innerHTML = "";
|
mobileBody.innerHTML = "";
|
||||||
|
|
||||||
dataset.forEach((row) => {
|
dataset.forEach((row, i) => {
|
||||||
// 🖥️ Desktop
|
// 🖥️ Desktop
|
||||||
let tr = `<tr class="wr:transition wr:bg-white wr:dark:bg-neutral-900 wr:hover:bg-gray-100 wr:dark:hover:bg-neutral-700 wr:border-b wr:border-gray-300 wr:dark:border-neutral-800">`;
|
let tr = `<tr class="wr:transition wr:bg-white wr:dark:bg-neutral-900 wr:hover:bg-gray-100 wr:dark:hover:bg-neutral-700 ${dataset.length - 1 != i && "wr:border-b"} wr:border-gray-300 wr:dark:border-neutral-800">`;
|
||||||
columns.forEach((col) => {
|
columns.forEach((col) => {
|
||||||
let value = row[col.key] ?? "";
|
let value = row[col.key] ?? "";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user