GwtMaterialDesign / gwt-material-table

A complex table component designed for the material design specifications
https://gwtmaterialdesign.github.io/gmd-table-demo/
Apache License 2.0
26 stars 31 forks source link

Disable selection on certain rows. #179

Open happyhua opened 5 years ago

happyhua commented 5 years ago

This is a feature request.

I wonder if it is possible to disable (disallow) the selection of certain rows in the datatable.

It would be nice if MaterialDataTable provides you an API called for example: setRowSelectionEnabled(int index, boolean enabled);

Currently you can select any rows if SelectionType is MULTIPLE.

image

kevzlou7979 commented 5 years ago

Im pretty sure theres a way we can disable the selection. Go to gwt.material.design.client.data.SelectionType and datatable.setSelectionType(NONE)

kevzlou7979 commented 5 years ago

But if you are referring to certain / specific row, then this might be a feature request