quasar.dev source code / global search
-
Hi all,
I would like to implement a global search like the one at https://quasar.dev/vue-components/ (when you type /, etc), see the screenshot below:
I was wondering if either the source code for that layout is available and if not, how to achieve that the search input can be seamlessly integrated with the toolbar, although I believe it is part of the list in the drawer.
Any pointers on how to globally intercept the pressing of “/” and focus the input would be super cool.Thanks in advance
-
@cmanique the search function uses a third party solution https://www.algolia.com/ , the focus on
/
keypress useswindow.addEventListener('keypress', handler)
initialized here, then handled here in the docs source code. -
@metalsadman thanks a lot for the info! Cool that the docs app source code is available!