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

multiple data in one field

Open axle21 opened this issue 7 years ago • 4 comments

is there a way like i can use 2 data in one field? like i can concat datestart and dateend?

axle21 avatar Aug 13 '19 02:08 axle21

You can use custom column rendering. https://material-table.com/#/docs/features/custom-column-rendering

In your case something like this: {title: 'Column with 2 values', render: (rowData) => rowData.firstname + " " + rowData.lastname}

madflanderz avatar Aug 13 '19 12:08 madflanderz

Aww thanks you so much about this will try it

On Tue, 13 Aug 2019 at 8:11 PM madflanderz [email protected] wrote:

You can use custom column rendering. https://material-table.com/#/docs/features/custom-column-rendering

In your case something like this: {title: 'Column with 2 values', render: (rowData) => rowData.firstname + " " + rowData.lastname}

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mbrn/material-table/issues/977?email_source=notifications&email_token=AKOS6FZLFE37TLFQJUDIVBDQEKQFLA5CNFSM4ILGSNJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4FOSKI#issuecomment-520808745, or mute the thread https://github.com/notifications/unsubscribe-auth/AKOS6FYT3NW4M2LKM6Z6GALQEKQFLANCNFSM4ILGSNJA .

axle21 avatar Aug 13 '19 12:08 axle21

@madflanderz is there a way to render and edit data conditionally in a column ?

thidasapankaja avatar Oct 17 '19 04:10 thidasapankaja

Hi is there a way I can add a value received from API and have a button in front of it to toggle some additional data on that button click?? Basically I want to be able to add some html code before my data in the column

Fallen-6121995 avatar Feb 02 '22 05:02 Fallen-6121995