No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    quasar.dev source code / global search

    Help
    2
    3
    134
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • cmanique
      cmanique last edited by

      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:

      dc921ef0-7a21-47dd-99bf-2608f9ecfb72-image.png

      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

      metalsadman 1 Reply Last reply Reply Quote 1
      • metalsadman
        metalsadman @cmanique last edited by metalsadman

        @cmanique the search function uses a third party solution https://www.algolia.com/ , the focus on / keypress uses window.addEventListener('keypress', handler) initialized here, then handled here in the docs source code.

        1 Reply Last reply Reply Quote 2
        • cmanique
          cmanique last edited by

          @metalsadman thanks a lot for the info! Cool that the docs app source code is available!

          1 Reply Last reply Reply Quote 2
          • First post
            Last post