bumps svelte-ag-grid component.

This commit is contained in:
kevmodrome 2020-09-28 11:51:37 +02:00
parent 3d7bde554d
commit 1068b067a8
No known key found for this signature in database
GPG Key ID: E8F9CD141E63BF38
2 changed files with 4 additions and 2 deletions

View File

@ -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",

View File

@ -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,