【发布时间】:2012-11-05 20:47:43
【问题描述】:
我在 Sencha Touch 2 中有一个 textfield 和一个按钮。我想在按下按钮时获取 textfield 的输入。我用 Ext.ComponentQuery 试过,但没有用。有人举个例子吗?
{
xtype: 'textfield',
cls: 'inputfields',
id: 'title',
},
{
xtype: 'button',
ui: 'action',
name: 'textfieldButton',
handler : function(){
// what should go here ?
}
}
【问题讨论】:
-
提示:不要在标题中写 Sencha Touch 2,而是添加一个 sencha-touch-2 标签。然后更容易找到 Sencha Touch 2 助手。
标签: extjs sencha-touch-2 textfield