Adds support for a new call-back, called when a grid row item is
received (via pcrud onresponse). If defined, The call-back is passed
the received item before the it's added to the data store. This allows
users to get a direct handle on received objects.
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
requiredFields : null,
hidePaginator : false,
showLoadFilter : false,
+ onItemReceived : null,
suppressLinkedFields : null, // list of fields whose linked display data should not be fetched from the server
/* by default, don't show auto-generated (sequence) fields */
streaming : true,
onresponse : function(r) {
var item = openils.Util.readResponse(r);
+ if (self.onItemReceived)
+ self.onItemReceived(item);
self.store.newItem(item.toStoreItem());
},
oncomplete : function() {