Sha256: a3903cbe1b92c17f4aa0cd31358c101db78cb1e1a31a65e0288031c4197815e4

Contents?: true

Size: 611 Bytes

Versions: 1

Compression:

Stored size: 611 Bytes

Contents

Ext.define('<%= @bundle %>.store.<%= class_name %>', {
	
	extend : 'Ext.data.Store',
	
	requires : '<%= @bundle %>.model.<%= class_name %>',
	
	model : '<%= @bundle %>.model.<%= class_name %>',
	
	autoLoad : false,

	remoteFilter : true,
	
	remoteSort : true,
	
	pageSize : 30,
	
<%= Hatio::Generators::ResourceViewUtil.grid_sort_option(@columns, "\t") %>
	
	proxy : {
		type : 'rest',
		url : '<%= table_name %>',
		format : 'json',
	    reader : {
			type : 'json',
			root : 'items',
			successProperty : 'success',
			totalProperty : 'total'
        },
        writer : {
			type : 'json'
        }
	}
	
});

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hatio-core-0.0.6 lib/generators/hatio/resource_view/templates/Store.js