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:
- 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.
- 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="["standard-sprite/svg/symbols.svg#product"]" sobjectsToSearch="["Product2"]" recordLimit="5" title="Products" />