implemented stock display from location tree to property list
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
@@ -1,13 +1,23 @@
|
||||
<script>
|
||||
import { t } from '../../translations.svelte';
|
||||
|
||||
let { items, selected = $bindable(null) } = $props();
|
||||
</script>
|
||||
<ul>
|
||||
<li>
|
||||
<a>
|
||||
<span class="symbol"></span> {t('add_object',{object:'item'})}
|
||||
</a>
|
||||
</li>
|
||||
<li>Item 1</li>
|
||||
<li>Item 2</li>
|
||||
<li>Item 3</li>
|
||||
</ul>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{t('id')}</th>
|
||||
<th>{t('code')}</th>
|
||||
<th>{t('name')}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{#each items as item}
|
||||
<tr onclick={ev => selected = item}>
|
||||
<td>{item.id}</td>
|
||||
<td>{item.code}</td>
|
||||
<td>{item.name}</td>
|
||||
</tr>
|
||||
{/each}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
Reference in New Issue
Block a user