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

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

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