mdbootstrap / mdb-react-ui-kit

React 18 & Bootstrap 5 & Material Design 2.0 UI KIT
https://mdbootstrap.com/docs/b5/react/
Other
1.41k stars 264 forks source link

How to make Editable Cells in DataTable #92

Closed skyrbs closed 5 years ago

skyrbs commented 5 years ago

Hello Team,

Thanks for reading this. I am looking to implement on click of edit open new page or url or Link. Can you please lookout below and let me know what i am missing

const data = { columns: [ { label: 'Name', field: 'name', sort: 'asc'
}, { label: 'Edit', filterable: false, Header: 'Click here', accessor: 'link', render: e => < Link to="hello"> Edit </ Link >, } ], rows: userdata }; // showing bellow < MDBDataTable striped bordered small data={data} />

==============

jakubchmura commented 5 years ago

Hi. I think you can find an answer in our documentation. Check this: Click here Best, Kuba

skyrbs commented 5 years ago

Hey @JakubChm Thanks for you comment. Yes i checked it but i am not getting how do i use

< Link to="hello"> Edit </ Link > at every rows.....

jakubchmura commented 5 years ago

Hi, This problem that you write about does not apply to issue in the MDB product. So then I need to redirect your question to our MDB support forum.

Best, Kuba