lundi 22 janvier 2018

using react-data-grid with CheckboxEditor

There already had been a question on this topic but it remains unanswered for 6 month, so I'll try and ask this in a slightly different way.

Since there is currently no example table for CheckboxEditor on the adazzle react-data-grid page it is unclear to me how to use this formatter.

In the columns array that I need to pass to the react-data-grid I can specify one column to use the CheckboxEditor. To also see the result after editing, I pass the CheckboxEditor as a formatter, since react-data-grid does not provide an explicit formatter for checkboxes.

The CheckboxEditor itself needs a value, column and rowIdx. What are these values supposed to be. I cannot set a rowIdx for the Column-Specifier, since the rowIdx is changing for every row in the grid.

<CheckboxEditor value={?} column={} rowIdx={?} />




Aucun commentaire:

Enregistrer un commentaire