Skip to content
Skip to content

List API

API reference docs for the React List component. Learn about the props, CSS, and other APIs of this exported module.

Demos

Import

import { List } from '@toolpad/core/Crud';

Props

NameTypeDefaultDescription
dataSourceobject-

Server-side data source.

dataSourceCache{ cache: object, clear: func, get: func, set: func, ttl: number }-

Cache for the data source.

initialPageSizenumber100

Initial number of rows to show per page.

localeTextobject-

Locale text for the component.

onCreateClickfunc-

Callback fired when the "Create" button is clicked.

onDeletefunc-

Callback fired when the item is successfully deleted.

onEditClickfunc-

Callback fired when the "Edit" button is clicked.

onRowClickfunc-

Callback fired when a row is clicked. Not called if the target clicked is an interactive element added by the built-in columns.

slotProps{ dataGrid?: object }{}

The props used for each slot inside.

slots{ dataGrid?: func }{}

The components used for each slot inside.

See Slots API below for more details.

The component cannot hold a ref.

Slots

Slot nameClass nameDefault componentDescription
dataGridDataGridThe DataGrid component used to list the items.

Source code

If you did not find the information in this page, consider having a look at the implementation of the component for more detail.