Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Login autofocus #12

Open
livelysalt opened this issue Dec 13, 2011 · 0 comments
Open

Login autofocus #12

livelysalt opened this issue Dec 13, 2011 · 0 comments
Assignees
Labels

Comments

@livelysalt
Copy link
Contributor

Here is the way I've added autofocus for the username field at login:

https://github.com/crysfel/Bleextop/blob/master/js/Bleext/modules/login/LoginForm.js#L41

            items   : [{
                labelAlign  : "top",
                msgTarget   : 'side',
                fieldLabel  : "User",
                name        : "username",
                allowBlank  : false,
                flex        : 1,
                margins     : {right:3},
                listeners: {
                    render: function(f) {
                        f.findParentByType('window').defaultButton = f;
                    }
                }               
            },{

See: Sencha forum post

@ghost ghost assigned crysfel Dec 13, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants