How to use the react-table.ReactTableDefaults.getTdProps function in react-table

To help you get started, we’ve selected a few react-table examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github technekes / cast-ui / src / Table / Table.component.tsx View on Github external
constructor(props: Props) {
    super(props);
  }

  static defaultProps = {
    defaultSortMethod: collator.compare,
    striped: false,
    tableSize: 'md',
    theme: Themes.defaultTheme,
    minRows: 0,
    defaultPageSize: 10,
    resizable: false,
    PaginationComponent: Pagination,
    nextText: 'Next >',
    previousText: '< Previous',
    getTdProps: ReactTableDefaults.getTdProps,
    getTrProps: ReactTableDefaults.getTrProps,
    showPageSizeOptions: true,
  };
  render() {
    const { data, getTdProps, getTrProps, theme, ...props } = this.props;
    debugger;
    return (
       outerTheme || theme}>
         {
            let className = '';
            if (
              rowInfo &&
              rowInfo.nestingPath.length === 1 &&