1
0
Fork 0
mirror of synced 2024-09-10 06:26:02 +12:00

options info

This commit is contained in:
Gerard Burns 2024-04-14 09:50:56 +01:00
parent aba14f0e16
commit 30449ee65b

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}`}