Skip to content

Instantly share code, notes, and snippets.

@aidan-harding
Last active September 17, 2021 12:49
Show Gist options
  • Save aidan-harding/2b5179efa0b79e23e0fe575821f7ecda to your computer and use it in GitHub Desktop.
Save aidan-harding/2b5179efa0b79e23e0fe575821f7ecda to your computer and use it in GitHub Desktop.
<template>
<lightning-datatable
key-field="id"
columns={columns}
data={data}
hide-checkbox-column
default-sort-direction={dataTableSorter.defaultSortDirection}
sorted-direction={dataTableSorter.sortDirection}
sorted-by={dataTableSorter.sortedBy}
onsort={dataTableSorter.sortData}>
</lightning-datatable>
</template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment