How can I generate a regular html <table>
on a Panel in Sencha Touch 2?
The data for each row could be from a store. It's not very "mobile" like a List, but I'd like to have a few detail Panels on my tablet app contain several sections like this:
header #1 <table> <tr><td>one</td>td>two</td></tr> <tr><td>foo</td>td>bar</td></tr> </table> header #2 <table> <tr><td>abc</td>td>xyz</td></tr> <tr><td>cat</td>td>dog</td></tr> </table>
The basic Panel definition should look something like this:
Ext.define('Kitchensink.view.HtmlTable', {
extend: 'Ext.tab.Panel',
config: {
activeItem: 1,
tabBar: {
docked: 'top',
layout: {
pack: 'center'
}
},
items: [{
title: 'Tab 1',
items: [{
html: '<h2 class="section">Section #1</h2>'
}, {
html: '<table class="style1">'
}],
}, {
title: 'Tab 2',
items: [{
html: '<h2 class="section">Section #3</h2>'
}, {
html: '<table class="style1">'
}],
}
}]
})