Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collapsible rows #21

Open
Kreyu opened this issue Jun 20, 2023 · 0 comments
Open

Collapsible rows #21

Kreyu opened this issue Jun 20, 2023 · 0 comments
Labels
feature New feature that would fit the core bundle

Comments

@Kreyu
Copy link
Owner

Kreyu commented Jun 20, 2023

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 Kreyu added the feature New feature that would fit the core bundle label Jun 20, 2023
@Kreyu Kreyu changed the title [Feature] Collapsible rows Collapsible rows Sep 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature that would fit the core bundle
Projects
None yet
Development

No branches or pull requests

1 participant