Add download file option
This commit is contained in:
parent
28d10ec086
commit
3ffba9faf8
|
@ -0,0 +1,28 @@
|
|||
<script>
|
||||
import { Label } from "@budibase/bbui"
|
||||
import DrawerBindableInput from "components/common/bindings/DrawerBindableInput.svelte"
|
||||
|
||||
export let parameters
|
||||
export let bindings = []
|
||||
</script>
|
||||
|
||||
<div class="root">
|
||||
<Label small>File</Label>
|
||||
<DrawerBindableInput
|
||||
title="State value"
|
||||
{bindings}
|
||||
value={parameters.value}
|
||||
on:change={e => (parameters.value = e.detail)}
|
||||
/>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
.root {
|
||||
display: grid;
|
||||
column-gap: var(--spacing-l);
|
||||
row-gap: var(--spacing-s);
|
||||
grid-template-columns: 60px 1fr;
|
||||
align-items: center;
|
||||
margin: 0 auto;
|
||||
}
|
||||
</style>
|
|
@ -22,3 +22,4 @@ export { default as PromptUser } from "./PromptUser.svelte"
|
|||
export { default as OpenSidePanel } from "./OpenSidePanel.svelte"
|
||||
export { default as CloseSidePanel } from "./CloseSidePanel.svelte"
|
||||
export { default as ClearRowSelection } from "./ClearRowSelection.svelte"
|
||||
export { default as DownloadFile } from "./DownloadFile.svelte"
|
||||
|
|
|
@ -161,6 +161,11 @@
|
|||
"name": "Clear Row Selection",
|
||||
"type": "data",
|
||||
"component": "ClearRowSelection"
|
||||
},
|
||||
{
|
||||
"name": "Download file",
|
||||
"type": "data",
|
||||
"component": "DownloadFile"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue