Clear Up
SharpKit Reference

ProxyConfig Class


Base Types



Name Description


Name Description
batchActions True to batch actions of a particular type when synchronizing the store. Defaults to true. Defaults to: true
batchOrder Comma-separated ordering 'create', 'update' and 'destroy' actions when batching. Override this to set a different order for the batched CRUD actions to be executed in. Defaults to 'create,update,destroy'. Defaults to: "create,update,destroy"
defaultReaderType The default registered reader type. Defaults to 'json'. Defaults to: "json"
defaultWriterType The default registered writer type. Defaults to 'json'. Defaults to: "json"
listeners A config object containing one or more event handlers to be added to this object during initialization. This should be a valid listeners config object as specified in the addListener example for attaching multiple handlers at once. DOM events from Ext JS Components While some Ext JS Component classes export selected DOM events (e.g. "click", "mouseover" etc), this is usually only done when extra value can be added. For example the DataView's itemclick event passing the node clicked on. To access DOM events directly from a child element of a Component, we need to specify the element option to identify the Component property to add a DOM listener to:
new Ext.panel.Panel({
            width: 400,
            height: 200,
            dockedItems: [{
            xtype: 'toolbar'
            listeners: {
            click: {
            element: 'el', //bind to the underlying el property on the panel
            fn: function(){ console.log('click el'); }
            dblclick: {
            element: 'body', //bind to the underlying body property on the panel
            fn: function(){ console.log('dblclick body'); }
model The name of the Model to tie to this Proxy. Can be either the string name of the Model, or a reference to the Model constructor. Required.
reader The to use to decode the server's response or data read from client. This can either be a Reader instance, a config object or just a valid Reader type name (e.g. 'json', 'xml').
writer The to use to encode any request sent to the server or saved to client. This can either be a Writer instance, a config object or just a valid Writer type name (e.g. 'json', 'xml').
© Copyright 2005-2011 SharpKit. All rights reserved.