Components

RecordsTableHeader

<RecordsTableHeader />

Constructor

# <RecordsTableHeader />

Prints thead section for table with records.

import { RecordsTableHeader } from 'admin-bro'

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

Example

List with 2 properties

Type Definitions

object

# Props

Properties:
Name Type Attributes Description
titleProperty PropertyJSON

Property which should be treated as a Title Property

properties Array.<PropertyJSON>

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 admin-bro/src/frontend/components/app/records-table/records-table-header.tsx, line 68