I just playing arround with the Kirby UI Kit and stumbled upon the k-structure-field
.
Given
<k-structure-field
v-model="value"
:required="true"
label="Structure"
name="structure"
help="This is a structure field"
@input="input"
/>
Result
How the heck do I configure the (+) Add
Button to open a dialog? if I click the Button I get can't convert undefined to object
error.
Also if I add :fields
like and click an the empty state
<k-structure-field
v-model="value"
:required="true"
:fields="{
name: {
label: 'Name',
type: 'text'
}
}"
label="Structure"
name="structure"
help="This is a structure field"
@input="input"
/>
I get an t.endpoints is undefined
error.
As a side note this view is renderd in a custom panel plugin.