0

I'm using react data table component i wanna use a radio button to select a row , i using checkbox how can i deactivate multiple select

 <Table
                    data={data}
                    columns={columns}
                    selectableRows={true}
                    conditionalRowStyles={conditionalRowStyles}
                    onRowClicked={handleRowClicked}
                    onSelectedRowsChange={handleRowSelected}
                    clearSelectedRows={true}
                />

1 Answer 1

1

You can use the selectableRowsSingle property.

 <Table
                data={data}
                columns={columns}
                selectableRows={true}

                selectableRowsSingle

                conditionalRowStyles={conditionalRowStyles}
                onRowClicked={handleRowClicked}
                onSelectedRowsChange={handleRowSelected}
                clearSelectedRows={true}
            />
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.