implemented stock display from location tree to property list

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2025-10-13 23:41:12 +02:00
parent 6e9a2b6aca
commit a52df2b434
10 changed files with 185 additions and 138 deletions
+20 -10
View File
@@ -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>