Open imballinst opened 4 years ago
Hi @Imballinst
const new_array = arrayWithData(
(values,index) =>
( {...value,owner:NAME: ${value.name}, MOBILE: ${value.mobile}
} )
)
header = [ { title: "OWNER", prop: "owner", sortable: true, filterable: true }, ]
it's worked for me...
@masnoonmulla oooh! I see. I thought you wanted to do something like:
Owner | |
---|---|
Name | Mobile |
Jack | 123123 |
Jack | 123123 |
Jack | 123123 |
In that case, yes, your solution works.
@Imballinst you can implement that also for future.. Thank You so much for your help...
Yeah sir how to pass mulitple prop in headers array Eg, { title: "OWNER", prop: "name,mobile", sortable: true, filterable: true },
in attached file there is two lables Owner Name & Mobile i need to display in one td with lables,
Originally posted by @masnoonmulla in https://github.com/Imballinst/react-bs-datatable/issues/54#issuecomment-587386863