Send an event when there are no options
I would like to receive an event when there are no options, so i can do something when there are no results.
Great idea.
When should this event fire? As a watcher on filteredOptions? Can you describe your use case?
My use case is that we would collect search keywords with no results, so we can see where people are searching for. I have now a fix that if the Ajax call has no results, I also can collect that information.
I have this need as well. An event handler for filteredOptions.length == 0 would work.
However, we don't do anything until they select a button that says "Analyze," so ideally an event handler for when the filteredOptions.length > 0 again would be great so I can programmatically change it from "Analyze" to "Suggest this option" and back dynamically.
Hey @sagalbot , can I implement this?