<RecordsTable />

Renders an entire records table. To fill the data you might need:

so make sure to see at the documentation pages for both of them

Type Definitions


# RecordsTableProps

Name Type Attributes Description
resource ResourceJSON

Resource which type records are rendered. Base on that we define which columns should be seen.

records Array.<RecordJSON>

Array of records seen in the table

actionPerformed function <optional>

Handler function invoked when someone performs action without component on a given record., Action without component is a delete action - you might want to refresh the list after that

sortBy string <optional>

default sort by column

direction 'asc' | 'desc' <optional>

sort direction

isLoading boolean <optional>

indicates if the table should be in loading state

selectedRecords Array.<RecordJSON> <optional>

list of selected records

onSelect function <optional>

handler function triggered when record is selected

onSelectAll function <optional>

handler function triggered when all items are selected

View Source admin-bro/src/frontend/components/app/records-table/records-table.tsx, line 48


Proudly built and maintained by SoftwareBrothers

Software House with a passion for both JavaScript and TypeScript.

See what we do See what we believe in

Proudly built and maintained by