This widget the alternative to a widget Repeater allows to write data to jsonable field also as well as "Repeater".
public $jsonable = ['config'];
{
"require": {
"reg2005/oc-jsonable": "1.0.*"
}
}
composer update
public function registerFormWidgets()
{
return [
'reg2005\Widgets\Jsonable' => [
'label' => 'jsonable',
'code' => 'jsonable'
]
];
}
ADD to your fields.yaml something like:
fields:
config[customization]:
label: 'extra'
type: jsonable
form:
fields:
form_color:
label: 'Color'
oc.commentPosition: ''
span: left
type: colorpicker
background:
label: 'Background'
oc.commentPosition: ''
mode: image
useCaption: 0
thumbOptions:
mode: crop
extension: jpg
span: left
type: fileupload
time[mon]:
label: Monday
type: jsonable
span: left
form:
fields:
from:
label: 'From'
oc.commentPosition: ''
span: left
default: '09:00'
type: datepicker
format: 'H:i'
mode: time
to:
label: 'To'
oc.commentPosition: ''
span: right
default: '18:00'
format: 'H:i'
type: datepicker
mode: time
time[tue]:
label: Tuesday
type: jsonable
span: left
form:
fields:
from:
label: 'From'
oc.commentPosition: ''
span: left
default: '09:00'
type: datepicker
mode: time
to:
label: 'To'
oc.commentPosition: ''
span: right
default: '18:00'
type: datepicker
mode: time