1.) When user clicks on "product id" column, I want to show some other BSTTableNew component like above (on expand row) but with columns "field A" & "field B" and some other functionality.
2.) When user clicks on "product name" column, I want to show BSTTable (on expand row) with similarly as above.
What changes I have to make in below code to load respective component class based upon the column I click to expand row with additional details?
I believe i have to make some changes in below code to load other components:
expandComponent(row) {
if( column === "productID") { //something of this sort I want
return (
<BSTableNew data={ row.expand } />
);
}
if( column === "productName") { //something of this sort I want
return (
<BSTable data={ row.expand } />
);
}
}
Que 2.) In BSTTable component class, i want to "dataFormat" "field A" column. I'm doing it like below:
But formatting is not getting applied here, I'm getting an error like "TypeError: cell.join is not a function. (In 'cell.join(" ")', 'cell.join' is undefined)"
I am following below example to implement "expand row by column".
Questions: Que 1.) I want to implement expand row on "multiple columns". For eg:
I would make 2 columns out of 3 to expand rows.
Behavior I want is :
1.) When user clicks on "product id" column, I want to show some other BSTTableNew component like above (on expand row) but with columns "field A" & "field B" and some other functionality.
2.) When user clicks on "product name" column, I want to show BSTTable (on expand row) with similarly as above.
What changes I have to make in below code to load respective component class based upon the column I click to expand row with additional details?
I believe i have to make some changes in below code to load other components:
Que 2.) In BSTTable component class, i want to "dataFormat" "field A" column. I'm doing it like below:
But formatting is not getting applied here, I'm getting an error like "TypeError: cell.join is not a function. (In 'cell.join("
")', 'cell.join' is undefined)"
What is wrong here? Please help @AllenFang