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

Page through sets of results when matches.length > maxResults #415

Open
finanalyst opened this issue Sep 21, 2023 · 1 comment
Open

Page through sets of results when matches.length > maxResults #415

finanalyst opened this issue Sep 21, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@finanalyst
Copy link

Is your feature request related to a problem? Please describe.

  • I have a search set of several thousand data points.
  • If I type a short input, I get eg 209 matches.
  • If I set maxresults to 20 for readability, I get 20 matched
  • I used your results list suggestion to have a div displaying 'showing 20 out of 209 matches`
  • users want to see the other 21-209
  • I have argued that more input is needed to reduce candidate, but data is also categorised and displayed using custom result rendering, so more input in the search window may loose information.
    (see screenshot below)

Thoroughly Describe the solution you'd like
I want to be able to have some method to show 21-40 out of 213 matches (21 is part of the next set of matches where the number in the set is defined by the maxResults value), eg

  • use 'PageDown' instead of 'CursorDown'
  • have a button at the bottom of the list to show the next set of matches

Please Describe alternatives you've considered

  • I have looked at using the 'navigate' event, but it does not trigger on PageDown
  • I have triggered the autoCompleteJS.goTo(21), but this positions selection at the 21st item (which is logical)
  • I'll look at more alternatives

Additional context
Here's a screenshot of a test
image

@finanalyst finanalyst added the enhancement New feature or request label Sep 21, 2023
@finanalyst
Copy link
Author

@TarekRaafat is this a reasonable enhancement? I'd offer a PR but I'm not a JS adept

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
None yet
Development

No branches or pull requests

1 participant