14 lines
440 B
JavaScript
14 lines
440 B
JavaScript
import { LightningElement,track} from 'lwc';
|
|
|
|
export default class WrapperTable extends LightningElement {
|
|
@track data = [
|
|
{ id: 1, name: 'John Doe', email: 'john.doe@example.com' },
|
|
{ id: 2, name: 'Jane Smith', email: 'jane.smith@example.com' }
|
|
];
|
|
|
|
@track columns = [
|
|
{ label: 'ID', fieldName: 'id' },
|
|
{ label: 'Name', fieldName: 'name' },
|
|
{ label: 'Email', fieldName: 'email' }
|
|
];
|
|
} |