Reflex Cloud - Fast, secure & scalable hosting. One command to deploy.

Data Table

The data table component is a great way to display static data in a table format. You can pass in a pandas dataframe to the data prop to create the table.

In this example we will read data from a csv file, convert it to a pandas dataframe and display it in a data_table.

We will also add a search, pagination, sorting to the data_table to make it more accessible.

If you want to add, edit or remove data in your app or deal with anything but static data then the rx.table might be a better fit for your use case.

The example below shows how to create a data table from from a list.

API Reference

rx.data_table

A data table component.

PropType | ValuesDefault
data
Any
columns
List
search
bool
sort
bool
resizable
bool
pagination
Union[bool, Dict]

Event Triggers

See the full list of default event triggers