Components

RecordsTableHeader

<RecordsTableHeader />

Constructor

# <RecordsTableHeader />

Prints `thead` section for table with records.
import { RecordsTableHeader } from 'adminjs'

View Source adminjs/src/frontend/components/app/records-table/records-table-header.tsx, line 49

Example

List with 2 properties

Type Definitions

object

# RecordsTableHeaderProps

Properties:
Name Type Attributes Description
titleProperty BasePropertyJSON

Property which should be treated as a Title Property

properties Array.<BasePropertyJSON>

All properties which should be presented

sortBy string <optional>

Name of the property which should be marked as currently sorted by

direction 'asc' | 'desc' <optional>

Sort direction

onSelectAll function <optional>

Handler function invoked when checkbox is clicked. If given extra column, with checkbox will be rendered

selectedAll boolean <optional>

Indicates if "bulk" checkbox should be checked

View Source adminjs/src/frontend/components/app/records-table/records-table-header.tsx, line 64