Current structure example:
{
Label: 'Label',
Name: 'Name',
Sortable: true,
SortOrder: 1,
SortDirection: 'None',
IsKey: false,
Searchable: true,
Visible: true,
Filter: {
Argument: [],
HasFilter: false,
Name: 'Name',
Operator: 'None',
OptionsUrl: null,
Text: null
},
DataType: 'string',
Aggregate: 'Count'
}
how it should be :
{
Name: 'Name',
Sortable: true,
SortOrder: 1,
SortDirection: 'Ascending',
Searchable: true,
Aggregate: 'Count',
Filtering: true
}
with these default values:
{
Sortable: false, // if sortable is true SortOrder and SortDirection must be set passed as well
Searchable: false,
Aggregate: 'None',
Filtering: false,
DataType: 'string',
IsKey: false,
Visible: true
}