Trigger user interactions directly from your search box with Autocomplete.js

Published: 07 September 2021
on channel: Algolia
2,511
24

The topic of this new Live Coding Session is "Autocomplete Omnibar - Trigger user interactions directly from your search box with Autocomplete.js".

Bryan Robinson, Sr Developer Advocate at Algolia, will walk you through setting up Autocomplete to fire interactions with JavaScript. Specifically, we'll build an omnibar to toggle light and dark mode for our website. An omnibar is a search field that has both search and actions that can be taken. A strong example of this is the Chrome or Firefox search and URL bar.

In the search field, a user will be able to type in / commands. These commands will be tied to specific JavaScript methods to trigger. We'll also make the Autocomplete results stateful. When the app is in light mode, the light mode option will show an "enabled" flag. When dark mode is enabled, the dark mode option will show the flag.

Try out Algolia on https://www.algolia.com/developers/ge...


Watch video Trigger user interactions directly from your search box with Autocomplete.js online, duration hours minute second in high quality that is uploaded to the channel Algolia 07 September 2021. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 2,511 times and liked it 24 visitors.