DataTable With React

DataTable With React

RekklesCRRekklesCR Posts: 1Questions: 0Answers: 0

It's really good and very interesting
1. In the slot, it's necessary to add the RowIndex (This is absolutely necessary to change the state of the array) and also the ColumnIndex (this can be optional)
2. I don't know why they added the slot prop, the columns already have something called render, or they could have added the slot as another property here, this is just a suggestion

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin

    1) Could you explain my it is necessary please? The examples appear to work okay.

    2) To make it easier to use. The slot handling creates a renderer for you which creates the React element for each cell. You could do it on your own customer rendering function if you prefer writing more code tho :).

    Allan

Sign In or Register to comment.