I am using react-table for binding data in grid.
Now I have to show 4 columns and one column has value of amount(price).
So in footer I want to show total of that price.
Can any one please help me on this?
Here is my sample code
<ReactTable
columns={columns}
noDataText="No rows found"
manual // Forces table not to paginate or sort automatically, so we can handle it server-side
data={this.props.drinkList}
loading={this.props.loading}
showPagination={true}
page={this.state.page > 0 ? this.state.page : 0}
showPaginationTop={false}
pages={pageCount}
showPaginationBottom={true}
defaultPageSize={10}
sortable={false}
pageSizeOptions={[5, 10, 20, 25, 50, 100]}
onFetchData={(state, instance) => {
this.setState({ page: state.page });
this.props.getDrinkListAction(
this.props.location.state.barId,
this.props.location.state.businessId,
this.state.searchText,
state.page + 1,
localStorage.getItem("token"),
state.pageSize,
history
);
}}
/>
Thanks