/LightningLookup

A lightning component for quick lookup functionality. Uses SOSL, Lightning components, and the Lightning Design System (SLDS). Also, works with generic sobjects.

Primary LanguageApex

LightningLookup

A lightning component for quick lookup functionality. Uses SOSL, Lightning components, and the Salesforce Lightning Design System (SLDS). Also, works with generic sObjects.

A couple of notes:

  1. You will need to adjust the ltng:require tag to use the correct path to your LightningDesignSystem static resource. This should be done in both svgIcon.cmp as well as LightningLookup.cmp.
  2. If you have a namespace in your org, you should adjust c:svgIcon references in LightningLookup.cmp to use your existing namespace. e.g., instead use mynamespace:svgIcon

Here's an example of calling the LightningLookup from another Lightning Component:

<c:lightningLookup icons="[&quot;standard-sprite/svg/symbols.svg#product&quot;]" sobjectsToSearch="[&quot;Product2&quot;]" recordLimit="5" title="Products" />

Deploy to Salesforce