Skip to content

Instantly share code, notes, and snippets.

@istan
Created June 5, 2012 14:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save istan/2875457 to your computer and use it in GitHub Desktop.
Save istan/2875457 to your computer and use it in GitHub Desktop.
Ext.define "onthebar.controller.StartViewController",
extend: "Deft.mvc.ViewController"
...
control:
signUpNavButton: #gets selector by id automatically
listeners:
tap: 'onSignUpNavButton'
signInButton:
listeners:
tap: 'onSignIn'
signInForm: true
view:
listeners:
push: 'onStartPush'
pop: 'onStartPop'
...
onSignIn: ->
values = signInForm.getValues()
console.log(values)
-----------------------------
Ext.define "onthebar.view.signIn.Form",
extend: "Ext.form.Panel"
...
xtype: "onthebar_signin_form"
itemId: 'signInForm'
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment