Skip to content

Commit

Permalink
Extend search API
Browse files Browse the repository at this point in the history
Previously, only openSearch() was exported.  For symmetry, add
closeSearch().  For convenience, also add toggleSearch().
  • Loading branch information
lechten committed Sep 29, 2024
1 parent 4725350 commit 2dcbf27
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion plugin/search/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,9 @@ const Plugin = () => {

},

open: openSearch
open: openSearch,
close: closeSearch,
toggle: toggleSearch

}
};
Expand Down
2 changes: 1 addition & 1 deletion plugin/search/search.esm.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion plugin/search/search.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2dcbf27

Please sign in to comment.