preparing to move items to new location
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<script>
|
||||
import { t } from '../../translations.svelte';
|
||||
|
||||
let { items, selected = $bindable(null) } = $props();
|
||||
let { items, selected = $bindable(null), drag_start = item => console.log({dragging:item}) } = $props();
|
||||
</script>
|
||||
<table>
|
||||
<thead>
|
||||
@@ -13,7 +13,7 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
{#each items as item}
|
||||
<tr onclick={ev => selected = item}>
|
||||
<tr onclick={ev => selected = item} ondragstart={e => drag_start(item)} draggable="true">
|
||||
<td>{item.id}</td>
|
||||
<td>{item.code}</td>
|
||||
<td>{item.name}</td>
|
||||
|
||||
Reference in New Issue
Block a user