forked from tsai/budibase
committed by
GitHub
5 changed files with 84 additions and 36 deletions
@ -1,29 +1,6 @@ |
|||||
<script> |
<script> |
||||
import { createEventDispatcher } from "svelte" |
|
||||
import { DropdownMenu, TextButton as Button, Icon } from "@budibase/bbui" |
|
||||
import AttachmentList from "../../attachments/AttachmentList.svelte" |
import AttachmentList from "../../attachments/AttachmentList.svelte" |
||||
// import Modal from "./Modal.svelte" |
|
||||
|
|
||||
const dispatch = createEventDispatcher() |
|
||||
|
|
||||
let anchor |
|
||||
let dropdown |
|
||||
|
|
||||
export let files |
export let files |
||||
</script> |
</script> |
||||
|
|
||||
<AttachmentList {files} /> |
<AttachmentList {files} on:delete /> |
||||
<!-- <div bind:this={anchor}> |
|
||||
<Button text small on:click={dropdown.show}> |
|
||||
<Icon name="edit" /> |
|
||||
</Button> |
|
||||
</div> |
|
||||
<DropdownMenu bind:this={dropdown} {anchor} align="left"> |
|
||||
<h5>Edit Attachment(s)</h5> |
|
||||
<Modal |
|
||||
{_bb} |
|
||||
{table} |
|
||||
onClosed={dropdown.hide} |
|
||||
on:newRow={() => dispatch('newRow')} /> |
|
||||
</DropdownMenu> --> |
|
||||
|
|
||||
Loading…
Reference in new issue