Skip to content

[BootstrapAdminUi] Allow choosing the displayed columns of grids - #396

Draft
camilleislasse wants to merge 1 commit into
Sylius:mainfrom
camilleislasse:feat/grid-column-visibility
Draft

camilleislasse wants to merge 1 commit into
Sylius:mainfrom
camilleislasse:feat/grid-column-visibility

Conversation

@camilleislasse

Copy link
Copy Markdown
Contributor
Q A
Branch? main
Bug fix? no
New feature? yes
BC breaks? minor, see below
Deprecations? no
Related tickets requires Sylius/SyliusGridBundle#508, same feature as Sylius/Sylius#19291
License MIT

Same "Columns" selector as in the Sylius admin (Sylius/Sylius#19291), for BootstrapAdminUi grids.

  • The changes are applied when the dropdown is closed. The visibility is kept in the URL (?visibility[total]=hidden).
  • Rendered by the new sylius_admin.common.index.content.grid.data_table#toolbar hook.
  • The visible field option is documented in docs/grid/fields.md.
  • Tests: TemplatesTest for the rendering, and a node:test file for the Stimulus controller.

BC

Draft until the grid bundle change is released: the sylius/grid-bundle constraint has to be bumped then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant