KeyVal (array)
Last updated
Was this helpful?
Last updated
Was this helpful?
Used for flat key => value
paired fields. Usually stored in a json
db column. (Same as a Laravel Nova KeyVal field).
Do not forget to $cast
the field to array on the model.
Nested KeyVal fields are supported in multiple levels.
You can use almost any field type, an error will be thrown if you use an invalid field.
Applied to the outer wrapper surrounding KeyVal field group
Default: 'flex flex-col'
Defines the css grid for the KeyVal field group
Default: 'sm:flex sm:grid sm:grid-cols-12 sm:gap-x-2 sm:gap-y-4'
Overrides nested $field->colspan()
Default 12 of 12 columns
If you set it on the Panel
you do not have to set it on each nested field.
Apply $field->stacked()
to all nested fields, can be overridden in each field.
Apply $field->inline()
to all nested fields, can be overridden in each field.
Override nested fields wire:model
attribute.