mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 19:46: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 dispatch = createEventDispatcher();
|
||||||
const batchSelectedIds = writable(false);
|
const batchSelectedIds = writable(false);
|
||||||
const tableSortable = writable(sortable);
|
|
||||||
const headerItems = writable([]);
|
const headerItems = writable([]);
|
||||||
const tableRows = writable(rows);
|
const tableRows = writable(rows);
|
||||||
const thKeys = derived(headerItems, () =>
|
const thKeys = derived(headerItems, () =>
|
||||||
|
@ -161,7 +160,6 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
setContext("DataTable", {
|
setContext("DataTable", {
|
||||||
tableSortable,
|
|
||||||
batchSelectedIds,
|
batchSelectedIds,
|
||||||
tableRows,
|
tableRows,
|
||||||
resetSelectedRowIds: () => {
|
resetSelectedRowIds: () => {
|
||||||
|
@ -200,7 +198,6 @@
|
||||||
expanded = expandedRowIds.length === expandableRowIds.length;
|
expanded = expandedRowIds.length === expandableRowIds.length;
|
||||||
}
|
}
|
||||||
$: if (radio || batchSelection) selectable = true;
|
$: if (radio || batchSelection) selectable = true;
|
||||||
$: tableSortable.set(sortable);
|
|
||||||
$: headerKeys = headers.map(({ key }) => key);
|
$: headerKeys = headers.map(({ key }) => key);
|
||||||
$: tableCellsByRowId = rows.reduce(
|
$: tableCellsByRowId = rows.reduce(
|
||||||
(rows, row) => ({
|
(rows, row) => ({
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue