javascript - Sencha Architect - creating a screen with a form -
Just started to see the sencha touch
Can someone please tell that you "FieldSet,
A login screen ...
Title: Login textfield: Username Password field: Password button: Submit 1) What Will this login screen be in a container, a field set and / or funnel?
2) What about a form without title? Just click on the textfield, button or title. Only a screen, a list of data?
I think the example code should be useful to you:
Ext.define ('MyApp.view.LoginSiteContainer', {extension: 'Ext.form.Panel', nickname: 'widget.loginsitecontainer', config: {id: 'Loginform', url: 'Som_url', items: [{xtype: 'container', layout: {type: 'vbox'}, item: [{xtype: 'fieldet', instructions: 'Login using existing account. The case is sensitive.' , 'Loginfield', {xtype: 'textfield', id: 'login', itemId: 'login', label: 'login'}, {xtype: 'passwordfield', id: 'password' , item Id: 'password', label: 'password'}]}, {xtype: 'panel', layout: {type: 'hbox'}, item: [{xtype: 'button', id: 'login', item Id: 'login', margin: '0.1em', UI: 'confirmation', text: 'login', flex: 1}]}]}], listeners: [{fn: 'onLoginTap', event: 'tap' , Representative: '# Login'}], OnlineTap: Function (buttons, E, Options) {// login function here} });
Comments
Post a Comment