]> git.proxmox.com Git - sencha-touch.git/blob - src/examples/direct/named-arguments.js
import Sencha Touch 2.4.2 source
[sencha-touch.git] / src / examples / direct / named-arguments.js
1 Ext.require([
2 'Ext.direct.*'
3 ]);
4
5 Ext.application({
6 name: 'Direct',
7 launch: function() {
8 Ext.direct.Manager.addProvider(Ext.app.REMOTING_API);
9
10 var form = Ext.create('Ext.form.Panel', {
11 fullscreen: true,
12 items: [{
13 xtype: 'fieldset',
14 items: [{
15 xtype: 'textfield',
16 label: 'First Name',
17 name: 'firstName',
18 value: 'Evan'
19 }, {
20 xtype: 'textfield',
21 label: 'Last Name',
22 name: 'lastName',
23 value: 'Trimboli'
24 }, {
25 xtype: 'numberfield',
26 label: 'Age',
27 name: 'age',
28 value: 25
29 }]
30 }, {
31 docked: 'bottom',
32 xtype: 'toolbar',
33 items: [{xtype: 'spacer'}, {
34 text: 'Send',
35 handler: function(){
36 var values = form.getValues();
37 TestAction.showDetails(values, function(value) {
38 Ext.Msg.alert('Server Response: ', value);
39 });
40 }
41 }]
42 }]
43 });
44 }
45 });