The StaticSearch class should emit custom events #331
Labels
enhancement
New feature or request
fix committed
A fix has been made, so if no problems emerge the issue can be closed.
Milestone
There's a common requirement to be able to do some post-processing or enhancements whenever specific things happen with the instantiated StaticSearch class; examples are:
This would be made much easier if StaticSearch emitted custom events which other code could listen for. Here's an example (untested, off the top of my head, but something I'd like to be able to do in a current project):
And this could be hooked by the site-specific code:
(I would use this particular case to insert a special link enabling the searcher to view all the results rendered together in a single page, if the number of results is sufficiently small for this to be manageable.)
The text was updated successfully, but these errors were encountered: