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

2 thoughts on “Lightning Global Search Component

  1. This is great Tushar. I am looking for a scenario where you type a text, we get the results and when you select a value in the result,that has to be add as a row under this search component.

Leave a Reply

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