Created
December 16, 2021 16:11
-
-
Save brianmfear/7de4205525e15f1bcd7b3fabf32f1e60 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
Download this as a ZIP file, move the files so they line up in the proper places, then deploy. | |
force-app/main/default/classes/StockMarketSharesWrapper.cls | |
force-app/main/default/classes/StockMarketSharesWrapper.cls-meta.xml | |
force-app/main/default/lwc/wrapperList/wrapperList.html | |
force-app/main/default/lwc/wrapperList/wrapperList.js | |
force-app/main/default/lwc/wrapperList/wrapperList.js-meta.xml | |
Support for question https://salesforce.stackexchange.com/q/365372/2984 |
This file contains hidden or 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
<template> | |
<lightning-datatable data={companys.data} columns={columns} key-field="Name"> | |
</lightning-datatable> | |
<lightning-button label="Show Data" onclick={showData}></lightning-button> | |
</template> | |
This file contains hidden or 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
import { wire, LightningElement } from 'lwc'; | |
import getAllCompanys from '@salesforce/apex/StockMarketSharesWrapper.getAllCompanys'; | |
export default class WrapperList extends LightningElement { | |
@wire(getAllCompanys, {}) companys; | |
columns = [{ label: 'Name', fieldName: 'Name' }, { label: 'Ticker', fieldName: 'Ticker' }] | |
} | |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata"> | |
<apiVersion>52.0</apiVersion> | |
<isExposed>false</isExposed> | |
</LightningComponentBundle> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment