Since Sencha Touch has all the interface elements, I decided to use it. Can someone tell me how to integrate the existing value in an items “HTML” config?
Codes are showing below:
I’ve got a form1
var form1 = new Ext.form.FormPanel({
id: 'form1',
standardSubmit : false,
scroll:'vertical',
dockedItems: [
form1topToolBar
],
items: [
{
xtype: 'textfield',
name: 'form1One',
label: 'Name'
}
]
});
I’ve also got a form2
var form2 = new Ext.form.FormPanel({
id: 'form2',
standardSubmit : false,
scroll:'vertical',
dockedItems: [
form2topToolBar
],
items: [
{
html: [
'<table class="outputTable">',
'<tr>',
'<td>form1.getValues().form1One</td>', <-------- Here is the value that I want.
'</tr>',
'</table>'
]
}
]
});
I’m going to assume you are trying to update the
<td>element when the user changes values. Here is the code to do that:Go here to learn more about templates.