Skip to content

Instantly share code, notes, and snippets.

@hahn-kev
Created September 23, 2015 18:44
Show Gist options
  • Save hahn-kev/d99b6eb2714276916ccd to your computer and use it in GitHub Desktop.
Save hahn-kev/d99b6eb2714276916ccd to your computer and use it in GitHub Desktop.
function getYearData() {
return callGrid1Refresh();
}
var callGrid1Refresh;
analysisMdl.gridOptions1 = {
onRegisterApi: function(api){
callGrid1Refresh = api.iqms.refreshData;
},
enablePaginationControls:false,
columnDefs: [
{ field: 'period', displayName: 'Period', minWidth: 20 },
{ field: 'startDate', displayName: 'From', cellFilter: 'date:\'' + $scope.iqDateFormat + '\'' },
{ field: 'endDate', displayName: 'To', cellFilter: 'date:\'' + $scope.iqDateFormat + '\'' },
{ field: 'total', displayName: 'Period Total', cellFilter: 'number: 2', cellClass: 'text-align-right' },
{ field: 'ytd', displayName: 'YTD', cellFilter: 'number: 2', cellClass: 'text-align-right' }
]
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment