Created
June 5, 2012 14:50
-
-
Save istan/2875457 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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