React-md: [DataTable] - Disable checkboxes in data-table

Created on 13 Mar 2017  路  2Comments  路  Source: mlaursen/react-md

Currently, the supplied "in-line" checkboxes in data-tables cannot be disabled.

It would be good if we could pass some sort of prop to disable these checkboxes, to prevent user interaction with them.

enhancement

Most helpful comment

I think I will provide two props:

  • disabledRows which will be a list of indexes for rows that should be disabled
  • disableAllRows which will be a boolean if all the rows should have the checkbox disabled

All 2 comments

I think I will provide two props:

  • disabledRows which will be a list of indexes for rows that should be disabled
  • disableAllRows which will be a boolean if all the rows should have the checkbox disabled

It might be helpful to also expose disableSelection || disableRow || disableCheckbox? (names hard) on the TableRow itself as well.

Was this page helpful?
0 / 5 - 0 ratings