adds height option to grid component

This commit is contained in:
kevmodrome 2020-10-13 09:13:56 +02:00
parent e2118a4bf1
commit 5963314b6c
3 changed files with 10 additions and 2 deletions

View File

@ -346,6 +346,12 @@ export default {
],
placeholder: "alpine",
},
{
label: "Height",
key: "height",
defaultValue: "500",
control: Input
},
],
},
children: [],

View File

@ -237,7 +237,8 @@
"balham-dark",
"material"
]
}
},
"height": "number"
}
},
"dataform": {

View File

@ -18,6 +18,7 @@
export let datasource = {}
export let editable
export let theme = 'alpine'
export let height;
let dataLoaded = false
let data
@ -110,7 +111,7 @@
href="https://cdn.jsdelivr.net/npm/flatpickr/dist/flatpickr.min.css" />
</svelte:head>
<div class="container">
<div class="container" style="--grid-height: {height}px">
{#if dataLoaded}
{#if editable}
<div class="controls">