In my TypeScript project, I am attempting to merge two properties into a single column. Is this achievable?
For instance, let's say I have properties named "Dog" and "Cat", and I would like to combine them into a shared column called "Animals" in the matTable.
Therefore, within a single cell of the "Animals" column, I aim to display "Dog, Cat".
Below is an example where I created two separate columns, but I am unsure how to display multiple properties in one cell:
configureColumns() {
this.columns = [
{
key: "Dog",
display: "Dog",
styles: { flex: "0 0 10%" }
},
{
key: "Cat",
display: "Cat",
styles: { flex: "0 0 10%" }
},