options info

This commit is contained in:
Gerard Burns 2024-04-14 09:50:56 +01:00
parent aba14f0e16
commit 30449ee65b
1 changed files with 9 additions and 0 deletions

View File

@ -44,6 +44,15 @@
/>
{:else if schema.type === "array"}
{#each (schema?.constraints?.inclusion ?? []) as option, index}
<Property
name={`Option ${index + 1}`}
truncate
>
<span style:background-color={schema?.optionColors?.[option]} class="optionCircle" />{option}
</Property>
{/each}
{:else if schema.type === "options"}
{#each (schema?.constraints?.inclusion ?? []) as option, index}
<Property
name={`Option ${index + 1}`}