1
0
Fork 0
mirror of synced 2024-10-01 17:47:46 +13:00

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