multi value filtering added and font color fix for duplicates
This commit is contained in:
Regular → Executable
+7
-1
@@ -24,7 +24,7 @@
|
||||
}
|
||||
|
||||
function filterControls(table) {
|
||||
return [...table.querySelectorAll('thead input, thead select')].filter(control => {
|
||||
return [...table.querySelectorAll('thead input, thead select, thead textarea')].filter(control => {
|
||||
const type = (control.type || '').toLowerCase();
|
||||
return !['checkbox', 'radio', 'button', 'submit'].includes(type);
|
||||
});
|
||||
@@ -44,6 +44,12 @@
|
||||
try { state = JSON.parse(api.get(key) || 'null'); } catch (_) {}
|
||||
if (state?.field && (state.direction === 'asc' || state.direction === 'desc')) {
|
||||
table.assetApplySort(state.field, state.direction, {silent: true});
|
||||
} else if (table.dataset.defaultSortField) {
|
||||
table.assetApplySort(
|
||||
table.dataset.defaultSortField,
|
||||
table.dataset.defaultSortDirection === 'desc' ? 'desc' : 'asc',
|
||||
{silent: true}
|
||||
);
|
||||
} else {
|
||||
table.assetUpdateRowNumbers?.();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user