src/main/webapp/resources/js/retail-order.js
//Spring XD analytic summary code starts here
Spring XD analytic summary code starts here
Spring XD analytic summary code starts here
function OrderAnalyticsModel() {
	var self = this;
	self.rows = ko.observableArray();
	var rowLookup = {};
	self.loadOrderAnalytics = function(data) {
		for ( var i = 0; i < data.length; i++) {
			var row = new OrderAnalyticsRow(data[i]);
			self.rows.push(row);
		}
	};
	self.reloadOrderAnalytics = function(data) {
		self.rows.removeAll();
		for ( var i = 0; i < data.length; i++) {
			var row = new OrderAnalyticsRow(data[i]);
			self.rows.push(row);
		}
	};
}
function OrderAnalyticsModel ( ) { var self = this ; self . rows = ko . observableArray ( ) ; var rowLookup = { } ; self . loadOrderAnalytics = function ( data ) { for ( var i = 0 ; i < data . length ; i ++ ) { var row = new OrderAnalyticsRow ( data [ i ] ) ; self . rows . push ( row ) ; } } ; self . reloadOrderAnalytics = function ( data ) { self . rows . removeAll ( ) ; for ( var i = 0 ; i < data . length ; i ++ ) { var row = new OrderAnalyticsRow ( data [ i ] ) ; self . rows . push ( row ) ; } } ; }
Spring XD analytic summary code starts here
Spring XD analytic summary code starts here