options info
This commit is contained in:
parent
aba14f0e16
commit
30449ee65b
|
@ -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}`}
|
||||
|
|
Loading…
Reference in New Issue