Comments (4)
@VidaShannon I tried to update columns when prop changed but it became more complicated. (I have to keep it in state for that)
I think this is simpler to use:
this.ref.table.setColumns(newColumns);
from react-tabulator.
Hi @ngduc but i'm a little upset...I've spend some time configuring this table, adapting my ajax response and working for display data, now I need add a new column and I discover that this table is not reactive and don't respond to my table changes.
I think that would be useful for other people include this information in the readme, I don't have so much time for try any other table solution and I'd be open even to re render my table if there is some change in the table config or in the data, do you know how can I rerender my table on changes? I'm using a functional component with my table inside...
also, I need that when I press some button my table change, so the columns after click are differents, I'm afraid that this will be impossible with this lib.
thank you
from react-tabulator.
@ngduc I think that using $("#example-table").tabulator("redraw", true); could works for me, forcing to redraw the entire table if the columns are different (I could comparte the columns with some state) but I don't know how achieve this with react (and avoid jquery)
from react-tabulator.
@cocodrino assume your table looks like this:
<ReactTabulator
ref={ref => (this.ref = ref)}
columns={columns}
data={[]}
options={options}
/>
after changing your columns, call:
this.ref.table.setColumns(newColumnArr);
it should tell the table to redraw with the new newColumnArr.
I'll revisit the reactive columns prop idea when I have some bandwidth.
from react-tabulator.
Related Issues (20)
- React Tabulator failing to return valid date from ISO 8601 timestamp
- targets.row.findCell is not a function HOT 9
- Bug: Table does not reflect changed options HOT 1
- Managed data causes table re-render which breaks edit experience
- Update to Latest Tabulator Version to Fix Major Bug
- Question: rowClick throws error in react functional component HOT 4
- Responsive Collapse Not Working on latest version but works on version 0.15.0 HOT 1
- How to get data of entire table in react tabulator?
- Movable columns buggy on nested columns
- tabulator_tables_1.TabulatorFull is not a constructor
- bug: Issue on scrolling horizontally with the first column freeze and enable horizontal virtual dom HOT 2
- Is this repo updated frequently? HOT 1
- Add value "list" to Editor @types
- Bug: function reactFormatter uses ReactDOM.render HOT 6
- Can we expect update for the repo HOT 2
- movableRowsReceiver not working for me
- Bug: event target lookup error and column not update
- Columns cannot be resized in 0.19.0 HOT 3
- update to tabulator 5.6 HOT 2
- headerFilter select (list) doesn't work (Editable Table Example)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-tabulator.