data-table-bundle icon indicating copy to clipboard operation
data-table-bundle copied to clipboard

Collapsible rows

Open Kreyu opened this issue 2 years ago • 0 comments

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 CollapseColumnType should render a button with icon to collapse the row;
  • the template_path should accept a template to render collapsible content;

Kreyu avatar Jun 20 '23 15:06 Kreyu