@@ -196,7 +198,12 @@ const defineTable = () => {
searchable: false,
render: (data, type, row) => {
return `
-
+
+
+ |
`;
}
},
@@ -225,28 +232,52 @@ const defineTable = () => {
orderable: true,
searchable: true,
render: (data, type, row) => {
- if (!row.active) {
- return `
-
- `;
+
+ // TODO:
+ // fix the badge icon not showing,
+ // its probvably because of jquery adding a closing tag ?
+
+ wrapper = $("
").addClass("px-6 py-4");
+ badge = $("
").addClass("py-1 px-1.5 inline-flex items-center gap-x-1 text-xs font-medium rounded-full");
+ icon = $('
-
+ |
Channels
-
|
-
+ |
Filters
-
|
- |
@@ -332,10 +324,10 @@
"dropdownScope": "window",
"optionClasses": "py-2 px-4 w-full text-sm text-gray-800 cursor-pointer hover:bg-gray-100 rounded-lg focus:outline-none focus:bg-gray-100 hs-select-disabled:pointer-events-none hs-select-disabled:opacity-50 dark:bg-neutral-900 dark:hover:bg-neutral-800 dark:text-neutral-200 dark:focus:bg-neutral-800",
"mode": "tags",
- "tagsInputId": "formChannelsInput",
+ "tagsInputId": "formFiltersInput",
"wrapperClasses": "relative ps-0.5 pe-9 min-h-[46px] flex items-center flex-wrap text-nowrap w-full border border-gray-200 rounded-lg text-start text-sm focus:border-blue-500 focus:ring-blue-500 dark:bg-neutral-900 dark:border-neutral-700 dark:text-neutral-400",
"tagsItemTemplate": "
",
- "tagsInputClasses": "py-3 px-2 rounded-sm order-1 text-sm outline-none dark:bg-neutral-900 dark:placeholder-neutral-500 dark:text-neutral-400",
+ "tagsInputClasses": "py-3 px-2 rounded-lg order-1 text-sm outline-none dark:bg-neutral-900 dark:placeholder-neutral-500 dark:text-neutral-400",
"optionTemplate": "
",
"extraMarkup": "
"
}' class="hidden">