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

Allow sortable headers with generic choosers #11794

Open
th3hamm0r opened this issue Mar 25, 2024 · 0 comments
Open

Allow sortable headers with generic choosers #11794

th3hamm0r opened this issue Mar 25, 2024 · 0 comments
Labels
component:Choosers Modal choosers for Page, Snippet and other models type:Enhancement

Comments

@th3hamm0r
Copy link
Contributor

Is your proposal related to a problem?

It is quite easy to setup and customize the chooser modal. For example, you can add columns easily.
Unfortunately, you cannot use the "sort_key" to enable sortable columns, since those sort-headers aren't handled by the modal's JS.

That's probably the reason, why the sort_key is set to None here:

columns += [LiveStatusTagColumn(sort_key=None)]

Describe the solution you'd like

It would be nice to have this handled by wagtail's JS. I think this would probably also help wagtailmedia's outdated implementation (which allows sorting) to be ported more easily.

There are similar tickets for the page chooser, which could also benefit from that functionality:
#3544
#8557

Working on this

Anyone can contribute to this. View our contributing guidelines, add a comment to the issue once you’re ready to start.

@th3hamm0r th3hamm0r added type:Enhancement component:Choosers Modal choosers for Page, Snippet and other models labels Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:Choosers Modal choosers for Page, Snippet and other models type:Enhancement
Projects
None yet
Development

No branches or pull requests

1 participant