There was an error while loading. Please reload this page.
Inspired by Ant table API.
data_source
columns
footer
[data_index]: 'text'
has_fixed_header
is_full_width
$MAX_CONTAINER_WIDTH
const example_data_source = [ { name: 'Bob', second_name: 'Marly', }, { name: 'Rick', second_name: 'Sanches', }, ]; const example_columns = [ { title: 'Name', data_index: 'name', }, { title: 'Second name', data_index: 'second_name', // optional render cell function renderCell: (data, data_index, transaction) => { // data - cell's text value (transaction[data_index]) // data_index - column's data_index ('second_name' in this case) // transaction - row object // return a modified <td> return <td className={data_index} key={data_index}>{data}!!!</td> } }, ]; const example_footer = { second_name: 'second name footer text' }; <DataTable data_source={example_data_source} columns={example_columns} footer={example_footer} />