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

Drop-down checkbox or method to display available values for a column #105

Open
michaeldacanay opened this issue Mar 10, 2023 · 3 comments

Comments

@michaeldacanay
Copy link

The column search filter has been good alternative to the default Django Admin list_filter, especially if you know what you are looking for. However, I was wondering if there was a way to view the set of values for a particular column? A similar issue I saw was #7 and am wondering if any progress was made on that. Thank you!

@morlandi
Copy link
Owner

@michaeldacanay
Copy link
Author

michaeldacanay commented Mar 13, 2023

Hi @morlandi, yes I found that after my post. I think it is a good step towards what I was looking for. I have a couple questions:

  1. Is there a way to have both a select menu and search box? So that the "select menu" filters based on what is typed in the search box? And you can still perform OR operations for search terms, if you want to view multiple values filtered?
  2. Currently, when I add a max_length, ellipses cut short the column values. Is there an option to view the whole value when hovering over in the select menu?

@wilberninsiima
Copy link

Hi @morlandi, yes I found that after my post. I think it is a good step towards what I was looking for. I have a couple questions:

  1. Is there a way to have both a select menu and search box? So that the "select menu" filters based on what is typed in the search box? And you can still perform OR operations for search terms, if you want to view multiple values filtered?
  2. Currently, when I add a max_length, ellipses cut short the column values. Is there an option to view the whole value when hovering over in the select menu?

In reference to question number 2, utilizing https://select2.org/ library would do the job. But the unfortunate part is that we have no capability to adjust the datatable input fields and selects classes of which we can target in JS. @morlandi you can do something on that
Then also @morlandi can we have the max_length ellipsis affect data only in dropdowns not the full data rendered in the td?

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

No branches or pull requests

3 participants