* fixed docs: "getTfootThProps" does not exist in code, but "getTfootTdProps" does (#1399)

* added `column` argument to getTfootTdProps function (match getTheadThProps and other prop getters in that scope)
This commit is contained in:
David H 2019-07-16 21:21:43 +02:00 committed by Tanner Linsley
parent 7a38d1fdb3
commit e2f03ef2f2
2 changed files with 2 additions and 2 deletions

View File

@ -389,7 +389,7 @@ These are all of the available props (and their default values) for the main `<R
getTdProps: () => ({}),
getTfootProps: () => ({}),
getTfootTrProps: () => ({}),
getTfootThProps: () => ({}),
getTfootTdProps: () => ({}),
getPaginationProps: () => ({}),
getLoadingProps: () => ({}),
getNoDataProps: () => ({}),

View File

@ -737,7 +737,7 @@ export default class ReactTable extends Methods(Lifecycle(Component)) {
const show = typeof column.show === 'function' ? column.show() : column.show
const width = _.getFirstDefined(resizedCol.value, column.width, column.minWidth)
const maxWidth = _.getFirstDefined(resizedCol.value, column.width, column.maxWidth)
const tFootTdProps = _.splitProps(getTfootTdProps(finalState, undefined, undefined, this))
const tFootTdProps = _.splitProps(getTfootTdProps(finalState, undefined, column, this))
const columnProps = _.splitProps(column.getProps(finalState, undefined, column, this))
const columnFooterProps = _.splitProps(
column.getFooterProps(finalState, undefined, column, this)