question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Multi-level search in a Select prompt

See original GitHub issue

Hello 👋

I’m using cliffy with two levels of Select prompting at the moment. That is, users need to select some item, but in order to not overwhelm them, those items are broken down into categories. The user must then first select a category before they can select an item. You can visualize it as:

{
  "category1": ["item1","item2"],
  "category2": ["item3"],
  "category3": ["item4","item5","item6"]
}

This works pretty well, but I really wish that I could start searching for items immediately when I am prompted to choose a category. Is there a nice way to achieve that today? And if not, is it something you think cliffy should support?

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
c4sparcommented, Aug 7, 2022

should categories be selectable in search results? I would probably expect them to be greyed out, and not something you can navigate to.

Should be fine if they are grayed out.

what if the category is a search hit, but an underlying option is not? Should all the options in that category be displayed? Should the category be selectable in that particular case? Should the category even count as a search hit?

I think it should be fine to make only items sarchable.

1reaction
KasMA1990commented, Aug 2, 2022

I’ll make a note here if I start actually developing, so don’t take my questions and clarifications as indication that I’ve started on anything 😊

Read more comments on GitHub >

github_iconTop Results From Across the Web

Selecting multiple values in a prompt - IBM
Click the prompt control. In the Properties pane, choose whether to allow users to specify more than one value or a range of...
Read more >
Access: More Query Design Options - GCF Global
To apply a multilevel sort: · Open the query and switch to Design view. · Locate the field you want to sort first....
Read more >
Dropdown - Semantic UI
A selection dropdown can allow a user to search through a large list of choices. Select Country ... A dropdown can include a...
Read more >
Setting up a Multi-level IVR - RingCentral Support
In the search box, search for "sales". Select the "Sales" call queue, then click Save located at the bottom of the window. Add...
Read more >
React Select
A flexible and beautiful Select Input control for ReactJS with multiselect, autocomplete and ajax support.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found