-
Notifications
You must be signed in to change notification settings - Fork 226
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
325 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 8 additions & 3 deletions
11
src-sample/main/default/aura/SampleLookupAppTemplate/SampleLookupAppTemplate.cmp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
<aura:component isTemplate="true" extends="aura:template"> | ||
<aura:set attribute="auraResetStyle" value=""/> | ||
<aura:set attribute="auraResetStyle" value="" /> | ||
<aura:set attribute="auraPreInitBlock"> | ||
<auraStorage:init name="actions" persistent="false" secure="false" maxSize="1024" /> | ||
<auraStorage:init | ||
name="actions" | ||
persistent="false" | ||
secure="false" | ||
maxSize="1024" | ||
/> | ||
</aura:set> | ||
</aura:component> | ||
</aura:component> |
42 changes: 32 additions & 10 deletions
42
src-sample/main/default/classes/SampleLookupController.cls
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 21 additions & 8 deletions
29
src-sample/main/default/lwc/sampleLookupContainer/sampleLookupContainer.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,29 @@ | ||
<template> | ||
<lightning-card title="Sample Lookup (Lightning Web Component)"> | ||
<div class="slds-form slds-form_stacked slds-m-around_xx-large"> | ||
<lightning-input | ||
type="checkbox" | ||
label="Is mutli entry lookup" | ||
checked={isMultiEntry} | ||
onchange={handleLookupTypeChange} | ||
></lightning-input> | ||
|
||
<lightning-input type="checkbox" label="Is mutli entry lookup" | ||
checked={isMultiEntry} onchange={handleLookupTypeChange}></lightning-input> | ||
|
||
<c-lookup selection={initialSelection} errors={errors} | ||
onsearch={handleSearch} onselectionchange={handleSelectionChange} | ||
label="Search" placeholder="Search Salesforce" is-multi-entry={isMultiEntry}> | ||
<c-lookup | ||
selection={initialSelection} | ||
errors={errors} | ||
onsearch={handleSearch} | ||
onselectionchange={handleSelectionChange} | ||
label="Search" | ||
placeholder="Search Salesforce" | ||
is-multi-entry={isMultiEntry} | ||
> | ||
</c-lookup> | ||
|
||
<lightning-button variant="brand" label="Submit" onclick={handleSubmit}></lightning-button> | ||
<lightning-button | ||
variant="brand" | ||
label="Submit" | ||
onclick={handleSubmit} | ||
></lightning-button> | ||
</div> | ||
</lightning-card> | ||
</template> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.