GroupGridColumns
GroupGridColumns
//Code should be placed as event "onAppStart"
//each entry within 'grouping' must have an array. First element is start date for
//the group and second the end date. If groups overlab (e.g. "today", "this week", "this month")
//the first matching entry is picked.
columnAddOnSettings = {
//add some grouping criteria for this date column
'grouping':{
'Future Dates': [moment().add(1, 'days'), moment('9999-12-31')],
'Today': [moment(), moment()],
'Last 7 days': [moment().subtract(6, 'days'), moment()],
'This Month': [moment().startOf('month'), moment().endOf('month')],
'This Year': [moment().startOf('year'), moment().endOf('year')],
'Last Year and Older': [moment('1970-01-01'), moment().endOf('year').subtract(1, 'year')]
}
};
brixxApi.gridColumnConfig ('testGrid1', 'cmpSomeDate', columnAddOnSettings);Last updated