Lightning/Aura component to for input lookup fields
This is a simple lightning component designed to do lookups on a particular field.
The component is intended to be used within another component and is designed to take a reference from the parent component to store it’s selectedRecord value. This allows you to use more than one of the inputs in a component. By default the component searchs Name fields of the objects specified.
<aura:component>
<aura:attribute name="selectedRecord" type="Object"></aura:attribute>
<c:InputLookupComponent selectedRecord="{!v.selectedRecord}" label="Search" objectTypes="['User','Group']"></c:InputLookupComponent>
</aura:component>