diff --git a/packages/standard-components/components.json b/packages/standard-components/components.json
index dca4611923..d0475a1225 100644
--- a/packages/standard-components/components.json
+++ b/packages/standard-components/components.json
@@ -242,7 +242,10 @@
"type": "number",
"default": "500"
},
- "pagination": "bool"
+ "pagination": {
+ "type": "bool",
+ "default": true
+ },
}
},
"dataform": {
diff --git a/packages/standard-components/src/DataGrid/AttachmentCell/Button.svelte b/packages/standard-components/src/DataGrid/AttachmentCell/Button.svelte
index 90694d52c7..139ffe02aa 100644
--- a/packages/standard-components/src/DataGrid/AttachmentCell/Button.svelte
+++ b/packages/standard-components/src/DataGrid/AttachmentCell/Button.svelte
@@ -1,29 +1,6 @@
-
-
-
+
\ No newline at end of file
diff --git a/packages/standard-components/src/DataGrid/Component.svelte b/packages/standard-components/src/DataGrid/Component.svelte
index 050c4eae42..0d86808961 100644
--- a/packages/standard-components/src/DataGrid/Component.svelte
+++ b/packages/standard-components/src/DataGrid/Component.svelte
@@ -12,7 +12,7 @@
import AgGrid from "@budibase/svelte-ag-grid"
import CreateRowButton from "./CreateRow/Button.svelte"
- import { TextButton as DeleteButton, Icon } from "@budibase/bbui"
+ import { TextButton as DeleteButton, Icon, Modal, ModalContent } from "@budibase/bbui"
export let _bb
export let datasource = {}
@@ -25,6 +25,8 @@
let canEdit = editable && datasource && datasource.type !== "view"
let canAddDelete = editable && datasource && datasource.type === "table"
+ let modal;
+
let store = _bb.store
let dataLoaded = false
let data
@@ -133,7 +135,7 @@
{#if selectedRows.length > 0}
-
+
Delete
{selectedRows.length}
@@ -150,13 +152,14 @@
on:update={handleUpdate}
on:select={({ detail }) => (selectedRows = detail)} />
{/if}
+
+
+ Are you sure you want to delete {selectedRows.length} row(s)?
+
+