mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 11:36:36 +00:00
refactor(data-table): remove unused tableSortable store
This commit is contained in:
parent
a1b43801c9
commit
e600115ecc
1 changed files with 0 additions and 3 deletions
|
@ -144,7 +144,6 @@
|
|||
};
|
||||
const dispatch = createEventDispatcher();
|
||||
const batchSelectedIds = writable(false);
|
||||
const tableSortable = writable(sortable);
|
||||
const headerItems = writable([]);
|
||||
const tableRows = writable(rows);
|
||||
const thKeys = derived(headerItems, () =>
|
||||
|
@ -161,7 +160,6 @@
|
|||
};
|
||||
|
||||
setContext("DataTable", {
|
||||
tableSortable,
|
||||
batchSelectedIds,
|
||||
tableRows,
|
||||
resetSelectedRowIds: () => {
|
||||
|
@ -200,7 +198,6 @@
|
|||
expanded = expandedRowIds.length === expandableRowIds.length;
|
||||
}
|
||||
$: if (radio || batchSelection) selectable = true;
|
||||
$: tableSortable.set(sortable);
|
||||
$: headerKeys = headers.map(({ key }) => key);
|
||||
$: tableCellsByRowId = rows.reduce(
|
||||
(rows, row) => ({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue