jay@moduscreate.com
25 Apr 2011, 12:41 PM
Seems like tapping to focus on a text field is really slow. There must be something with the tap event that is causing this, and I have little time to investigate at the moment. Trying to wrap up CH4 of Sencha Touch in Action.
Tested on iOS simulator, and iPad.
Demo: http://tdg-i.com/tmp/IMG_0620.m4v
using code:
Ext.setup({
onReady: function() {
var toolbar = {
xtype : 'toolbar',
dock : 'top',
title : 'User admin',
items : [
{
xtype : 'spacer'
},
{
xtype : 'textfield',
width : 200,
listeners : {
action : function(txtFld, evtObj) {
alert(evtObj.type)
}
}
},
{
xtype : 'button',
iconCls : 'search',
ui : 'plain',
iconMask : true
}
]
};
new Ext.Panel({
fullscreen : true,
style : 'background-color: #CCF;',
items : [ { xtype :'textfield', label : 'TF 1'},{ xtype :'textfield', label : 'TF 2'}],
dockedItems : [
toolbar
]
});
}
});
Tested on iOS simulator, and iPad.
Demo: http://tdg-i.com/tmp/IMG_0620.m4v
using code:
Ext.setup({
onReady: function() {
var toolbar = {
xtype : 'toolbar',
dock : 'top',
title : 'User admin',
items : [
{
xtype : 'spacer'
},
{
xtype : 'textfield',
width : 200,
listeners : {
action : function(txtFld, evtObj) {
alert(evtObj.type)
}
}
},
{
xtype : 'button',
iconCls : 'search',
ui : 'plain',
iconMask : true
}
]
};
new Ext.Panel({
fullscreen : true,
style : 'background-color: #CCF;',
items : [ { xtype :'textfield', label : 'TF 1'},{ xtype :'textfield', label : 'TF 2'}],
dockedItems : [
toolbar
]
});
}
});