Browse Source

Extend search API

Previously, only openSearch() was exported.  For symmetry, add
closeSearch().  For convenience, also add toggleSearch().
Jens Lechtenbörger 7 months ago
parent
commit
2dcbf2745e
3 changed files with 3 additions and 1 deletions
  1. 3 1
      plugin/search/plugin.js
  2. 0 0
      plugin/search/search.esm.js
  3. 0 0
      plugin/search/search.js

+ 3 - 1
plugin/search/plugin.js

@@ -235,7 +235,9 @@ const Plugin = () => {
 
 		},
 
-		open: openSearch
+		open: openSearch,
+		close: closeSearch,
+		toggle: toggleSearch
 
 	}
 };

File diff suppressed because it is too large
+ 0 - 0
plugin/search/search.esm.js


File diff suppressed because it is too large
+ 0 - 0
plugin/search/search.js


Some files were not shown because too many files changed in this diff