Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save forcementor/3908290 to your computer and use it in GitHub Desktop.
Developing Mobile…Force.com and Sencha-Part 2, Step 5: Configure View Transitions
slideLeftTransition: {
type: 'slide',
direction: 'left'
},
slideRightTransition: {
type: 'slide',
direction: 'right'
},
//View Transition Helper functions
activateLeadEditor: function (record) {
var leadEditorView = this.getLeadEditorView();
leadEditorView.setRecord(record);
Ext.Viewport.animateActiveItem(leadEditorView, this.slideLeftTransition);
},
activateLeadsList: function () {
Ext.Viewport.animateActiveItem(this.getLeadsListView(), this.slideRightTransition);
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment