This repository has been archived by the owner on Oct 5, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from no-stack-dub-sack/feat/errors-and-scroll
enhancements: add overflow scroll, errors, and loading state to lookup
- Loading branch information
Showing
9 changed files
with
155 additions
and
52 deletions.
There are no files selected for viewing
6 changes: 5 additions & 1 deletion
6
src-sample/main/default/aura/SampleLookupContainer/SampleLookupContainer.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,7 +1,11 @@ | ||
<aura:component access="global" controller="SampleLookupController"> | ||
<aura:attribute access="private" type="List" name="selection" default="[]"/> | ||
<aura:attribute access="private" type="List" name="errors" default="[]"/> | ||
|
||
<div class="slds-form slds-form_stacked slds-m-around_xx-large"> | ||
<c:Lookup aura:id="lookup" selection="{!v.selection}" onSearch="{!c.lookupSearch}" label="Search" placeholder="Search Salesforce" isMultiEntry="true"/> | ||
<c:Lookup aura:id="lookup" selection="{!v.selection}" onSearch="{!c.lookupSearch}" onSelection="{!c.clearErrorsOnChange}" errors="{!v.errors}" label="Search" placeholder="Search Salesforce" isMultiEntry="true"/> | ||
|
||
<lightning:button variant="brand" label="Submit" onclick="{!c.onSubmit}" /> | ||
</div> | ||
|
||
</aura:component> |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
.THIS .slds-combobox__input, | ||
.THIS .slds-combobox_container { | ||
transition: border .1s linear, box-shadow .1 linear; | ||
} | ||
|
||
.THIS .slds-combobox__input { | ||
box-shadow: none; | ||
} | ||
|
||
.THIS .slds-combobox__input.has-custom-border { | ||
box-shadow: 0 0 0 2px #fff inset, 0 0 0 3px rgb(221, 219, 218) inset; | ||
} | ||
|
||
.THIS .slds-combobox__input.has-custom-error { | ||
border: 1px solid rgb(194, 57, 52); | ||
box-shadow: rgb(194, 57, 52) 0 0 0 1px inset; | ||
} | ||
|
||
.THIS .slds-combobox_container.has-custom-error { | ||
border: none !important; | ||
} | ||
|
||
.THIS .slds-combobox__input.has-custom-height { | ||
height: 32px !important; | ||
} | ||
|
||
.THIS .form-error { | ||
color: rgb(194, 57, 52); | ||
display: block; | ||
} |
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.