Code Monkey home page Code Monkey logo

Comments (12)

brantchoate avatar brantchoate commented on May 16, 2024 4

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

from table.

a-x- avatar a-x- commented on May 16, 2024 3

i researched how to use it:

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

from table.

rpalermodrums avatar rpalermodrums commented on May 16, 2024 2

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.

from table.

dnlsandiego avatar dnlsandiego commented on May 16, 2024 2

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?

from table.

tannerlinsley avatar tannerlinsley commented on May 16, 2024 2

from table.

tannerlinsley avatar tannerlinsley commented on May 16, 2024 1

Just issued a fix. [email protected] Sorry!

from table.

arindambarman1-zz avatar arindambarman1-zz commented on May 16, 2024

Thanks a lot

from table.

arindambarman1-zz avatar arindambarman1-zz commented on May 16, 2024

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

from table.

tannerlinsley avatar tannerlinsley commented on May 16, 2024

from table.

a-x- avatar a-x- commented on May 16, 2024

reopen pls

from table.

asokolova88 avatar asokolova88 commented on May 16, 2024

How to solve this problem?

from table.

ademidun avatar ademidun commented on May 16, 2024

Try changing your import statement:
Instead of:

import ReactTableDefaults from "react-table"

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

from table.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.