data-table-bundle
data-table-bundle copied to clipboard
Collapsible rows
The bundle should allow creating collapsible rows out-of-the-box.
Every row should be able to be collapsed (accordion-like) in a multiple ways. First idea is as follows:
$builder
->addColumn('categories', CollapseColumnType::class, [
'template_path' => 'product/categories.html.twig',
])
->addColumn('tags', CollapseColumnType::class, [
'template_path' => 'product/tags.html.twig',
])
;
Notes:
- the
CollapseColumnTypeshould render a button with icon to collapse the row; - the
template_pathshould accept a template to render collapsible content;