Lightning Global Search Component

Previously I have shared a search/Lookup component.  But using that we can only search one object at a time. So today I am sharing a global search component. Using this we can search on multiple objects.

Lightning Global Search Component

 

Here we are getting value when user change input. Currently it select few standard object and custom object, which are easily configurable. You can use custom setting to make object dynamic.

To display record detail I have used lightning:tag but we can also use lightning:recordForm to display object details.

You can find complete code on my github repo here.

Do you want to add anything, let me know in comments section. Happy programming 🙂

 

Advertisements

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.