Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Apr 22 2021 10:40
    bebraw reopened #386
  • Apr 22 2021 09:36
    bebraw commented #386
  • Apr 22 2021 09:23
    bolam-o closed #386
  • Mar 26 2021 15:15
    bebraw commented #386
  • Mar 26 2021 15:09
    bolam-o commented #386
  • Mar 26 2021 14:14
    bebraw commented #386
  • Mar 26 2021 14:12
    bebraw commented #386
  • Mar 25 2021 03:37
    bolam-o commented #386
  • Mar 25 2021 03:34
    bolam-o opened #386
  • Jan 28 2021 15:11
    bebraw labeled #385
  • Jan 28 2021 15:11
    bebraw opened #385
  • Jan 26 2021 15:07
    bebraw commented #384
  • Jan 26 2021 15:03
    Naspo88 edited #384
  • Jan 26 2021 14:43
    Naspo88 opened #384
  • Oct 21 2020 10:08
    thiagofernando closed #383
  • Oct 21 2020 10:08
    thiagofernando commented #383
  • Oct 19 2020 15:20
    bebraw commented #383
  • Oct 19 2020 14:54
    thiagofernando commented #383
  • Oct 19 2020 10:48
    bebraw commented #383
  • Oct 19 2020 10:39
    thiagofernando opened #383
Juho Vepsäläinen
@bebraw
yup
i noticed you resolved your issue :+1:
i've been quite busy this year so i haven't had time to focus on the lib
but i think now that react has hooks, there could be some chance for a great simplification
i also went all-in with typescript so typing the lib would be great too
it's more about time/money at this point. i have to give income generating dev higher priority atm
Andres9888
@Andres9888
Hi, I had a question. My question might be simple but I have been stuck on it for a while. I am using a table where I have logic inside the columns definition. One of the logic is converting the data I get from one of the cells but my problem is the logic runs the first time but doesn't run again when I refresh. I have tired Table
Overriding shouldComponentUpdate that you have but I havn't been able to get it to work. Let me know if you have an guidance or suggestions. I also understand you are busy so I will try to have a link to the code to make it easier for you. I also have one more problem but it is basically boilers down to getting cells rendering when state changes . Thank you ahead of time for any help. I will try to get you a link as quick as possible.
Juho Vepsäläinen
@bebraw
@Andres9888 yeah, much easier to resolve if i get a simple example to run. simplify as much as possible :)
it definitely sounds like SCU
Chen Bin
@redguardtoo
@Andres9888 , the row is re-rendered if and only if the row data is changed. The table re-render might not trigger the re-rendering of specific row if that row's data stays same.
Sourabh K
@sourabhlk
@bebraw Hi , had a question.. Some confusion in formatters and transforms. I have a formatter fn whose value depends on the corresponding rows values. But i want to make it editable too. I have tried adding a calcfn which calculates its value based on corrensponding row values and a editable for it. But currently only the cell is becoming editable but it doesnt has any value.. means formatter is not getting executed. what is the issue or what may be the soln..? Thanks..
Juho Vepsäläinen
@bebraw
@sourabhlk can you set up an example (codesandbox or so)? it's hard to say otherwise
the official docs might have something more complicated somewhere too
https://reactabular.js.org/#/examples/excel is doing something a bit more
samthecarman
@samthecarman
Hi, Thanks for the library, it's awesome! I have a question. In the CRUD example, for the Active column, if I click on a row and then click down a row without selecting, the edit view on the first row does not get removed. How would I get the edit view removed when selecting another field to edit on a different row?
Juho Vepsäläinen
@bebraw
@samthecarman hi, i've been busy with travel (not a lot of time to respond). what you described sounds like an issue in my state management (editing state doesn't get reset)
@samthecarman editable(edit.boolean()) - my bet the issue is in edit.boolean
Juho Vepsäläinen
@bebraw
check https://github.com/reactabular/react-edit/blob/master/src/edit.js - isEditing(extraParameters) feels weird
i think if i wrote the lib now, i would drop most of the abstractions and use hooks for bits where it makes sense
but i would say the design aged well - now headless components have become trendy
Mario Contreras
@marioacc
Hi! Thank you in advance for the development of the table, it has been incredible helpful for our team!
Juho Vepsäläinen
@bebraw
@marioacc great to hear! if there's anything specific to add or change, i would be open to contract (my current contract is near the end). there are some PRs to merge and we could wrap the API behind hooks
the design has lasted the time quite well. there are some things i would alter but not much
one of the main things i would try is to integrate react-window through hooks to get easy and efficient virtualization
virtualization included in reactabular doesn't do absolute positioning so it's less performant. i don't know what's the current limit on that, though
Mario Contreras
@marioacc
I have a question related to the implementation of the Virtualized table. I followed the second example in the virtualized feature guide, however Im getting the error body.getRef(...).getRef is not a function
Thank you very much for the heads up @bebraw! The integration with hooks would be terrific!
Right now I only have that question related to the implementation of the virtualized table though. I have been looking through the internet and I haven't found someone with my problem ☹️ I'm guessing there must be something really foolish I'm forgetting about
However, I'm not sure if this is the right channel to ask this kind of questions
Juho Vepsäläinen
@bebraw
@marioacc can you open issues with code examples so it's easy to debug? thanks
likely the best bet is to compare with the official example and dive into the codebase to see what it's doing
the ref handling part is somehow tricky
Nitin Galave
@ni3galave
How can I get row data in cell transform function?
Juho Vepsäläinen
@bebraw
somehow the API aged well. headless APIs are popular these days
i guess the main question is what would it look like if we redesigned reactabular around react hooks
Nitin Galave
@ni3galave
Thanks.. that will be great!
1991hariharan
@1991hariharan
I have an trouble in applying custom width for react tabular tables. Is someone is available to help me ?
Juho Vepsäläinen
@bebraw
@1991hariharan can you push your current code to github or codesandbox?
i have a full example with resizing at https://reactabular.js.org/#/features/resizing-columns
varapraveenu
@varapraveenu
Hello
I want to display a default message like 'No data available for search {key}'
I couldn't figure out exactly on how to do this
Could you let me know where should I add this or how could I implement this
I'm a new bee to React/Redux... If my question isn't clear or if you need more information please let me know
Juho Vepsäläinen
@bebraw
do you mean within the table body itself?
here's what i would do - 1. check https://reactabular.js.org/#/features/search 2. then instead of <Table.Body rows={searchedRows} rowKey="id" /> do searchedRows.length > 0 ? <Table.Body rows={searchedRows} rowKey="id" /> : 'No data available...'
the cool thing is that you can do this outside of the components and handle it as you prefer. the key point is to check against searchedRows array
@varapraveenu i hope this helps