Skip to content

Kirby 3.6.1.1

Structure field

<k-structure-field>

This UI component hasn't been finalized yet. The functionality and syntax aren't stable and might be redone in an upcoming release. Only use it at your own risk - breaking changes are likely to occur.

Props

Prop Type Default Description
columns
object
counter
boolean|object
disabled
boolean
duplicate
boolean
true
empty
string
The text, that is shown when the field has no entries.
endpoints
object
fields
object
help
string
input
string|number
label
string
limit
number
max
number
min
number
name
number|string
prepend
boolean
false
required
boolean
sortBy
string
sortable
boolean
true
translate
boolean
type
string
value
array
[]

Methods

Method Parameters Description
close Close the current structure field entry.
open
  • number index
  • string field
Edit the structure field entry at index position
with field field focused.

Events

Event Description Passes
blur
focus
input

Slots

Slot Description
counter
default
footer
header
help
label
options

Example

<k-structure-field
    v-model="value"
    :required="true"
    label="Structure"
    name="structure"
    help="This is a structure field"
    @input="input"
/>

CSS classes

.k-structure-field