Skip to content

Commit

Permalink
feat(actions): Add "dataKey" to Sorted DataTable
Browse files Browse the repository at this point in the history
  • Loading branch information
annelhote committed Jul 26, 2023
1 parent f189b4c commit 9495258
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions client/src/pages/home/views/sorted.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,19 @@ export default function ActionsView({

return (
<DataTable
style={{ fontSize: '11px', lineHeight: '15px' }}
size="small"
value={sortedPublications}
currentPageReportTemplate="{first} to {last} of {totalRecords}"
dataKey="id"
filterDisplay="row"
paginator
paginatorTemplate="RowsPerPageDropdown FirstPageLink PrevPageLink CurrentPageReport NextPageLink LastPageLink"
rows={25}
rowsPerPageOptions={[25, 50, 100, 200]}
tableStyle={{ minWidth: '50rem' }}
paginatorTemplate="RowsPerPageDropdown FirstPageLink PrevPageLink CurrentPageReport NextPageLink LastPageLink"
currentPageReportTemplate="{first} to {last} of {totalRecords}"
filterDisplay="row"
scrollable
size="small"
stripedRows
style={{ fontSize: '11px', lineHeight: '15px' }}
tableStyle={{ minWidth: '50rem' }}
value={sortedPublications}
>
<Column field="action" header="Actions" body={actionsTemplate} showFilterMenu={false} style={{ minWidth: '130px' }} />
<Column field="allIdsHtml" header="Identifiers" body={allIdsTemplate} filter filterMatchMode="contains" />
Expand Down

0 comments on commit 9495258

Please sign in to comment.