Files
lucent-laravel/front/js/entry/FieldEditEntry/RelationFieldProps.svelte
T

30 lines
696 B
Svelte
Raw Normal View History

2026-01-10 02:09:50 +02:00
<script>
let { field, schemas } = $props();
</script>
<fieldset>
<label>
Schemas
<select
bind:value={field.props.schemas}
aria-label="Select allowed schemas"
multiple
size="6"
>
<option disabled>Select allowed schemas </option>
{#each schemas as schema}
<option value={schema.id}>{schema.name}</option>
{/each}
</select>
</label>
<label>
2026-01-12 20:47:53 +02:00
Min items
2026-01-10 02:09:50 +02:00
<input type="number" bind:value={field.props.min} />
</label>
<label>
2026-01-12 20:47:53 +02:00
Max items
2026-01-10 02:09:50 +02:00
<input type="number" bind:value={field.props.max} />
</label>
</fieldset>