remove unspecified large table reset control
This commit is contained in:
1 parent
09966cea10
commit
cf6149bf24
3 files changed
-33
No files matched your search
@@ -131,18 +131,6 @@
|
||||
updateHandleState(table, safeWidths, minWidth);
|
||||
};
|
||||
|
||||
const resetWidths = (table) => {
|
||||
const headers = getColumnHeaders(table);
|
||||
const minWidth = getMinWidth(table);
|
||||
const widths = getDefaultWidths(table, headers, minWidth);
|
||||
try {
|
||||
window.localStorage.removeItem(getStorageKey(table));
|
||||
} catch (error) {
|
||||
// Storage can be unavailable in privacy-restricted browser contexts.
|
||||
}
|
||||
applyWidths(table, widths, minWidth);
|
||||
};
|
||||
|
||||
const resizeColumn = (table, index, delta, persist) => {
|
||||
const widths = [...table._largeTableColumnWidths];
|
||||
const minWidth = getMinWidth(table);
|
||||
@@ -225,12 +213,6 @@
|
||||
}
|
||||
});
|
||||
|
||||
table.addEventListener('click', (event) => {
|
||||
const reset = event.target.closest('[data-large-table-reset-widths]');
|
||||
if (reset && table.contains(reset)) {
|
||||
resetWidths(table);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
window.sgInitLargeTableColumnResize = (options = {}) => {
|
||||
|
||||
Reference in new issue
Block a user