AG-195 Create react example using grouped data
This commit is contained in:
17
src-grouped/ColDefFactory.jsx
Normal file
17
src-grouped/ColDefFactory.jsx
Normal file
@@ -0,0 +1,17 @@
|
||||
export default class ColDefFactory {
|
||||
createColDefs() {
|
||||
return [
|
||||
{headerName: "Athlete", field: "athlete", width: 200},
|
||||
{headerName: "Age", field: "age", width: 90},
|
||||
{headerName: "Gold", field: "gold", width: 100, aggFunc: 'sum'},
|
||||
{headerName: "Silver", field: "silver", width: 100, aggFunc: 'sum'},
|
||||
{headerName: "Bronze", field: "bronze", width: 100, aggFunc: 'sum'},
|
||||
{headerName: "Total", field: "total", width: 100, aggFunc: 'sum'},
|
||||
{headerName: "Country", field: "country", width: 120, rowGroupIndex: 0},
|
||||
{headerName: "Year", field: "year", width: 90},
|
||||
{headerName: "Date", field: "date", width: 110},
|
||||
{headerName: "Sport", field: "sport", width: 110}
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user