$widget
$widget : \Charcoal\App\Template\WidgetInterface
Store the nested widget.
Nested Widget Form Group
Allows UI widgets to be embedded into a form group and rendered using the current object, if any.
Based on WidgetFormGroup
from beneroch/charcoal-utils.
Usage:
{
"title": "My Nested Collection",
"type": "charcoal/admin/widget/form-group/nested-widget",
"widget_data": {
"type": "charcoal/admin/widget/table",
"obj_type": "foobar/model/item",
"collection_ident": "grouped",
"sortable": true
},
"renderable_data": {
"collection_config": {
"filters": [
{
"property": "category",
"val": "{{ id }}"
}
],
"list_actions": [
{
"ident": "create",
"url": "object/edit?obj_type=foobar/model/item&form_data[category]={{ id }}"
}
]
}
}
}
renderDataRecursive(array|\Traversable $data) : array|\Traversable
Render the given data recursively.
array|\Traversable | $data | The data to render. |
If the data is not iterable.
If the form doesn't have a model.
The rendered data.