Skip to content

Commit

Permalink
onchange gets grant work items
Browse files Browse the repository at this point in the history
  • Loading branch information
rogeramitchell committed Jul 12, 2019
1 parent 4f4ad45 commit 4895d7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
<div class="slds-form-element">
<label for="grant" class="slds-form-element__label">Grant</label>
<div class="slds-form-element__control">
<select id="grant">
<select id="grant" onchange={handleSelectGrant}>
<template if:true={grants}>
<template for:each={grants} for:item="grant">
<option key={grant.grantId} value={grant.grantId}>{grant.grantName}</option>
</template>
</template>
</template>
</select>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default class TimecardAppComponent extends LightningElement {
handleSelectGrant(e) {
this.grantId = e.target.value;
getGrantWorkItems({"grantId": this.grantId}).then((response) => {
console.log(JSON.stringify(response));
this.grantWorkItems = response;
});
}

Expand Down

0 comments on commit 4895d7e

Please sign in to comment.