1
0
Fork 0
mirror of synced 2024-07-19 13:15:49 +12:00

Add download file option

This commit is contained in:
Adria Navarro 2024-03-22 09:49:05 +01:00
parent 28d10ec086
commit 3ffba9faf8
3 changed files with 34 additions and 0 deletions

View file

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

View file

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

View file

@ -161,6 +161,11 @@
"name": "Clear Row Selection",
"type": "data",
"component": "ClearRowSelection"
},
{
"name": "Download file",
"type": "data",
"component": "DownloadFile"
}
]
}