Skip to content

how to select and save entire row of data? #1531

@rlutsky042919

Description

@rlutsky042919

Question
I am following the example in Storybook > Row Selection> Click to Select and Edit Cell. I have 2 questions:

  1. whenever I click in any cell, ALL of the checkboxes toggle on or off. How do I get just that row to toggle?
  2. It seems that only the 1st column is tied to the checkbox and therefore the only part of the row that is saved in state. How can I save the entire row of data as an object in state?

Screenshots
1 Hover and click on this row

image

  1. After clicked on that 1 row:

image

  1. After click on 1 different row:

image

codesandbox

This is my first sandbox, so please let me know if I did not send it correctly: https://codesandbox.io/s/epic-bush-m6w7c?file=/App.js

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions