Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/lib/components/Table/TableContent.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
toggle = false, // Whether to display the fitToScreen toggle
search = true, // Whether to display the search input
pageSizes = [5, 10, 20, 50, 100], // Page sizes to display in the pagination component
pageIndexStringType = 'pages', // pages by default
pageIndexStringType = 'items', // items by default
fitToScreen = true, // Whether to fit the table to the screen,
exportable = false, // Whether to display the export button and enable export functionality
server
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/Table/TablePagination.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
$: goToNextPageDisabled = !$hasNextPage;
$: goToPreviousPageDisabled = !$hasPreviousPage;
$: $pageSize = pageSizeDropdownValue;
$: $pageCount, $pageIndex, $pageSize, (indexInformation = getIndexInfomationString());
$: $pageCount, $pageIndex, $pageSize, itemCount, (indexInformation = getIndexInfomationString());
</script>

<div class="flex justify-between w-full items-stretch gap-10">
Expand Down
2 changes: 1 addition & 1 deletion src/routes/components/table/data/codeBlocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ export interface TableConfig<T> {
exportable?: boolean; // false by default
pageSizes?: number[]; // [5, 10, 20, 50, 100] by default
defaultPageSize?: number; // 10 by default
pageIndexStringType?: 'items' | 'pages'; // pages by default
pageIndexStringType?: 'items' | 'pages'; // items by default
optionsComponent?: typeof SvelteComponent;

server?: ServerConfig;
Expand Down
2 changes: 1 addition & 1 deletion src/routes/components/table/docs/TableConfigDocs.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@
<p class="text-xl pl-10">
Whether the table should display page index information by number of items or pages. <code
class="!text-xl bg-tertiary-300 dark:bg-tertiary-700/50 rounded-md p-0.5 text-primary-500"
>"pages"</code
>"items"</code
>
by default.
</p>
Expand Down