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

SoftwareBrothers

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

SoftwareBrothers