Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Demos not working #55

Closed
arindambarman1-zz opened this issue Feb 3, 2017 · 12 comments
Closed

Demos not working #55

arindambarman1-zz opened this issue Feb 3, 2017 · 12 comments

Comments

@arindambarman1-zz
Copy link

Can someone please update the storybook. Currently is it full of errors

@rpalermodrums
Copy link
Contributor

It's not just the storybook. The 5.0.0 update seems to be broken. Getting this error when trying to render the table: column.getHeaderProps is not a function.

@tannerlinsley
Copy link
Collaborator

Just issued a fix. react-table@5.0.1 Sorry!

@arindambarman1-zz
Copy link
Author

Thanks a lot

@arindambarman1-zz
Copy link
Author

Before starting to use this can someone confirm if it supports fixed header and fixed set of columns on the left for horizontal scrolling? Can't see it in the documentation

@tannerlinsley
Copy link
Collaborator

tannerlinsley commented Feb 4, 2017 via email

@dnlsandiego
Copy link

dnlsandiego commented Feb 9, 2017

I'm getting the same error: TypeError: column.getHeaderProps is not a function using v5.0.2 when trying to override the column defaults like so:

<ReactTable
  data={data}
  columns={columns}
  styleName="table"
  column={{headerClassName: 'header'}}
/>

I was under the impression this kind of props override is possible after reading the docs. Or is it not possible to override for object type props like the one for column?

@tannerlinsley
Copy link
Collaborator

tannerlinsley commented Feb 9, 2017 via email

@brantchoate
Copy link

brantchoate commented Mar 5, 2017

also have the same exact problem (trying to override the headerClassName) - using 5.3.4

@a-x-
Copy link

a-x- commented Apr 24, 2017

i researched how to use it:

import tableDefaultProps from 'react-table/lib/defaultProps';
      <Table
        {...{data, columns}}
        column={{...tableDefaultProps.column, filterRender}}
      />

@a-x-
Copy link

a-x- commented Apr 24, 2017

reopen pls

@asokolova88
Copy link

How to solve this problem?

@ademidun
Copy link

ademidun commented Sep 5, 2018

Try changing your import statement:
Instead of:

import ReactTableDefaults from "react-table"

Try:
import { ReactTableDefaults } from "react-table"
h/t @gavinsharp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants