From 1068b067a8344cf11e0b9f6f06ae34dda97a000e Mon Sep 17 00:00:00 2001 From: kevmodrome Date: Mon, 28 Sep 2020 11:51:37 +0200 Subject: [PATCH] bumps svelte-ag-grid component. --- packages/standard-components/package.json | 2 +- packages/standard-components/src/DataGrid/Component.svelte | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/standard-components/package.json b/packages/standard-components/package.json index 649f78b95a..3415c00beb 100644 --- a/packages/standard-components/package.json +++ b/packages/standard-components/package.json @@ -37,7 +37,7 @@ "dependencies": { "@beyonk/svelte-googlemaps": "^2.2.0", "@budibase/bbui": "^1.34.6", - "@budibase/svelte-ag-grid": "^0.0.8", + "@budibase/svelte-ag-grid": "^0.0.10", "@fortawesome/fontawesome-free": "^5.14.0", "@svelteschool/svelte-forms": "^0.7.0", "britecharts": "^2.16.1", diff --git a/packages/standard-components/src/DataGrid/Component.svelte b/packages/standard-components/src/DataGrid/Component.svelte index 028a4dfd10..50c38cecac 100644 --- a/packages/standard-components/src/DataGrid/Component.svelte +++ b/packages/standard-components/src/DataGrid/Component.svelte @@ -26,8 +26,10 @@ const { schema } = await jsonModel.json() if (!isEmpty(datasource)) { data = await fetchData(datasource) - columnDefs = Object.keys(schema).map(key => { + columnDefs = Object.keys(schema).map((key, i) => { return { + headerCheckboxSelection: i === 0, + checkboxSelection: i === 0, valueSetter: setters.get(schema[key].type), headerName: key.charAt(0).toUpperCase() + key.slice(1), // Capitalise first letter field: key,