adds height option to grid component
This commit is contained in:
parent
e2118a4bf1
commit
5963314b6c
|
@ -346,6 +346,12 @@ export default {
|
|||
],
|
||||
placeholder: "alpine",
|
||||
},
|
||||
{
|
||||
label: "Height",
|
||||
key: "height",
|
||||
defaultValue: "500",
|
||||
control: Input
|
||||
},
|
||||
],
|
||||
},
|
||||
children: [],
|
||||
|
|
|
@ -237,7 +237,8 @@
|
|||
"balham-dark",
|
||||
"material"
|
||||
]
|
||||
}
|
||||
},
|
||||
"height": "number"
|
||||
}
|
||||
},
|
||||
"dataform": {
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue