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

Ability to sort filter options in the dropdown manually #2634

Closed
Tracked by #2268
maokomioko opened this issue Mar 25, 2024 · 2 comments
Closed
Tracked by #2268

Ability to sort filter options in the dropdown manually #2634

maokomioko opened this issue Mar 25, 2024 · 2 comments
Labels
Enhancement New feature or request

Comments

@maokomioko
Copy link

Feature

Expose configuration to sort filter options in the dropdown manually.
Ex. I want "start date" to appear before "end date". Perhaps like this

  filter_options_position = {start_date: 1, end_date: 2} 

Screenshots or screen recordings

image

@Paul-Bob
Copy link
Contributor

Possible API:

class Avo::Resources::Project < Avo::BaseResource
  self.dynamic_filters_order = -> {
    filters_list.map... # return list ordered as you wish here
  }
end

@Paul-Bob Paul-Bob added the Enhancement New feature or request label Mar 25, 2024
@adrianthedev
Copy link
Collaborator

Closing in favor of #2268

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request
Projects
Archived in project
Development

No branches or pull requests

3 participants