You need to sign in to do that
Don't have an account?

trying to create lightning data table component in Visual studio code
Hi all
The following error is showing while trying to create lightning data table component in Visual studio code. Please suggest how to resolve this. Thanks.

The following error is showing while trying to create lightning data table component in Visual studio code. Please suggest how to resolve this. Thanks.
<template> <h1 style="height: 30px;font-size:14px;background-color:#F4F4F4;padding-left:10px; text-align:left;font-weight: bold;"> Sales(Year over Year) </h1> <div style="height: 300px;"> <lightning-datatable key-field="id" data={data} show-row-number-column row-number-offset={rowOffset} suppress-bottom-bar columns={columns}> </lightning-datatable> </div> </template>
Refer the below link have an example how to created LWC data table.
https://www.sfdcpoint.com/salesforce/lightning-web-component-lightning-datatable/
If this helps, Please mark it as best answer.
Thanks!!
Please try with https://developer.salesforce.com/docs/component-library/bundle/lightning-datatable/documentation
if you need any assistanse, Please let me know!!
Kindly mark my solution as the best answer if it helps you.
Thanks
Mukesh