Material-table: Add one row (single) selection mode

Created on 8 Mar 2019  路  5Comments  路  Source: mbrn/material-table

hi

I think it would be great to have the option to select both one and multimples rows

I would appreciate very much if I added this feature

help wanted

Most helpful comment

Hey @mbrn I am confused on how to let the user only select only one row only.
Since there is only option for checkboxes and not radio buttons. Can you add an example over here please ?

All 5 comments

Hi @angelelizalde21 ,

It already have selection feature.

https://mbrn.github.io/material-table/#/docz-examples-05-example-selection

if I'm using the selection option, but would I like to have the option to select one row at a time, or some way to just select one?

You can do it with onRowClick event. It will give you clicked rowData. So you can send a rowStyle to table according to selected row.

If you can not do it let me know. I will add a example about it.

I already made the code.
in fact it works thanks a lot, I hope in a while you could add selection modes (sinlge or mutiple).
for now it works, thanks for the excellent help
greetings.

Hey @mbrn I am confused on how to let the user only select only one row only.
Since there is only option for checkboxes and not radio buttons. Can you add an example over here please ?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Likurg2010 picture Likurg2010  路  3Comments

Mihier-Roy picture Mihier-Roy  路  3Comments

victorwvieira picture victorwvieira  路  3Comments

timrchavez picture timrchavez  路  3Comments

roseak picture roseak  路  3Comments