material-table icon indicating copy to clipboard operation
material-table copied to clipboard

Adding a link to items in a particular column

Open meldsz opened this issue 7 years ago • 1 comments

I want one of the fields in the table to have a link associated with it. So that I can navigate to another page on clicking the item. Is this possible in the currently available features?

For example, I have an ID column in the table. On clicking each of these IDs the user should be navigated to a new page to show details associated with that row. I'm aware of the details panel but my requirement is to display all the details in a new page as fitting all the information within the detail panel looks messy.

meldsz avatar Jul 12 '19 20:07 meldsz

adding render in columns solved this..

columns={{ title: 'ID', field: 'id', editable: 'never', render: rowData => {rowData.id} }}

meldsz avatar Jul 12 '19 20:07 meldsz