Skip to content

Instantly share code, notes, and snippets.

@wrumsby
Last active December 19, 2015 22:29
Show Gist options
  • Select an option

  • Save wrumsby/6028125 to your computer and use it in GitHub Desktop.

Select an option

Save wrumsby/6028125 to your computer and use it in GitHub Desktop.
ExtJS Model & Store.
Ext.define('My.ToDo.Model', {
extend: 'Ext.data.Model',
fields: [
{
name: 'description',
type: 'string'
},
{
name: 'isDone',
type: 'boolean'
}
]
});
Ext.create('Ext.data.Store', {
id: 'ToDoStore',
model: 'My.ToDo.Model',
proxy: {
type: 'ajax',
url: '/todo-list.aspx',
reader: {
type: 'json'
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment