- ๐ญ Working for OpenClassrooms
- ๐ฑ Learning everything I can
codbear / reactable Goto Github PK
View Code? Open in Web Editor NEWData table with React
Home Page: https://codbear.github.io/reactable
License: GNU General Public License v3.0
Data table with React
Home Page: https://codbear.github.io/reactable
License: GNU General Public License v3.0
I'm getting this trace:
react.development.js?1b7e:220 Warning: Failed prop type: Table: prop type `isThemeDisabled` is invalid; it must be a function, usually from the `prop-types` package, but received `undefined`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.
My component looks like so:
...
return (
<Table
columns={columns}
data={rows}
hasSearchBar
onChangeItemsPerPage={function noRefCheck() { }}
variant="filled"
isThemeDisabled={true}
// itemsPerPage={itemsPerPage}
// itemsPerPageOptions={[
// 5,
// 10,
// 25,
// 50,
// 100
// ]}
/>
)
The table works fine nonetheless but it would be nice if the warning didn't appear. Is there something I gotta do to make it go away?
I read the pointers on the readme about adding custom theming. But all it says is to use the useTable
. I don't really know what I'm supposed to do based on that.
I did look at the source code linked in that section too, but didn't gather anything useful out of it for me.
Could you outline the steps to take so you could override the styling and, e.g., change the filling color to your liking or maybe even supply a theme.
If it was possible to somehow deactivate the styling in total this would solve this issue really well, as I already have custom styling in place for tables and I would imagine a lot of other users have a similar setup.
Again though, awesome stuff! This lib really hits the balance between having a simple API and offering enough extra stuff like the global search (which I โฅ)
Is it possible to set text alignment by column? e.g., col 1 is aligned to the center, the rest is not.
I tried having a row like this some text <br /> some more text
which is a common way for marking up a list of items inside a table.
However, reactable seems to not parse HTML content as such when put in the rows.
Is there a workaround in the meantime?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.