Skip to content

Conversation

@amitmbee
Copy link
Contributor

@amitmbee amitmbee commented Apr 3, 2018

Adds a checkbox as column header which allows the user to check/uncheck all the requests for interception at once

Copy link
Contributor

@revathskumar revathskumar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to be the implementation needs much more effort. will discuss this.

Header : (data) =>
<input type="checkbox" className="checkAll" onChange={e =>
data.data.forEach( (val) => e.target.checked ?
props.handleCheckToggle(val._original.requestId, true) :
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why there is method call in forEach?

id: "checkbox",
accessor: "",
Header : (data) =>
<input type="checkbox" className="checkAll" onChange={e =>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how to determine if the checkbox is checked or not?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants