Skip to content

Instantly share code, notes, and snippets.

@forcementor
Created October 17, 2012 21:22
Show Gist options
  • Select an option

  • Save forcementor/3908285 to your computer and use it in GitHub Desktop.

Select an option

Save forcementor/3908285 to your computer and use it in GitHub Desktop.
Developing Mobile…Force.com and Sencha-Part 2, Step 4: Add Controller Event Handling
config: {
refs: {
// We're going to lookup our views by alias.
leadsListView: "leadslistview",
leadEditorView: "leadeditorview",
leadsList: "#leadsList"
},
control: {
leadsListView: {
// The commands fired by the list container.
syncLeadCommand: "onSyncLeadCommand",
newLeadCommand: "onNewLeadCommand",
editLeadCommand: "onEditLeadCommand"
},
leadEditorView: {
// The commands fired by the note editor.
saveLeadCommand: "onSaveLeadCommand",
deleteLeadCommand: "onDeleteLeadCommand",
backToHomeCommand: "onBackToHomeCommand"
}
}
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment