I have created a blueprintjs table, and I want to be able to get it's data in JSON format. I do not want to get all the columns. Specific ones only and I only way them row by row. This is the format I am talking about:
{
"Campaign": "5",
"Date Sent": "5 days ago"
}
This is the way I have currently rendered my table. I have a button above that will call a javascript function that I wish to do this functionality. On the blueprintjs table documentation, I couldn't find anything related to actually parsing the table. I only found functions relating to just getting data such as # of rows etc.
render() {
const { data } = this.props;
const { length } = data;
return (
<Table
numRows={length}
>
<Column name="Campaign" cellRenderer={this.renderCell} />
<Column name="Date Sent" cellRenderer={this.renderCell} />
<Column name="Queueing" cellRenderer={this.renderCell} />
<Column name="Sent" cellRenderer={this.renderCell} />
<Column name="Open" cellRenderer={this.renderCell} />
</Table>
);
}
}