material-ui icon indicating copy to clipboard operation
material-ui copied to clipboard

TableRow checkbox needs an onCheck event

Open ajsharp opened this issue 10 years ago • 3 comments

Description

When a checkbox is added to each table row there is no way to get notified when a table row's checkbox is checked, except for the selection behavior. The problem with this behavior is you don't always want the "whole row" selection behavior -- you only want to fire an event when the checkbox is checked.

ajsharp avatar Jun 01 '16 00:06 ajsharp

@ajsharp Can you give an example where such behavior will be useful? If it's a specific case, then making a separate check doesn't make sense. However, if it's a general use, then we can look into it 😄

aahan96 avatar Jun 10 '16 17:06 aahan96

Closing issue due to inactivity

aahan96 avatar Jun 24 '16 15:06 aahan96

I have an example where this would be useful.

I have a Delivery management table with headings:

  • Consignment
  • Order Ref
  • Bookable
  • Booked
  • Booked Date

Bookable and Booked are checkboxes, sometimes I want to select Bookable, but not Booked. So having an onCheck event for a checkbox, not a wrapper for a bunch of checkboxes, would be very useful.

NickToye avatar Jun 29 '18 09:06 NickToye