[TIMOB-19962] Windows: Implement Titanium.UI.TableView footerView/footerTitle
| GitHub Issue | n/a |
|---|---|
| Type | Improvement |
| Priority | Medium |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2016-07-15T00:06:03.000+0000 |
| Affected Version/s | Release 5.1.0 |
| Fix Version/s | Release 6.0.0 |
| Components | Windows |
| Labels | n/a |
| Reporter | Kota Iguchi |
| Assignee | Gary Mathews |
| Created | 2015-11-13T08:40:38.000+0000 |
| Updated | 2016-10-07T14:39:14.000+0000 |
Description
Implement
Ti.UI.TableView-related properties for Windows such as TableView.footerView, TableViewRow.font, leftImage, and hasCheck etc.
var win = Ti.UI.createWindow({ backgroundColor: 'orange' }),
sectionView = Ti.UI.createTableViewSection({
headerTitle: 'sectionView.headerTitle',
footerView: Ti.UI.createLabel({ text: 'sectionView.footerView' })
}),
tableView = Ti.UI.createTableView({
headerTitle: 'tableView.headerTitle',
footerView: Ti.UI.createLabel({ text: 'tableView.footerView' }),
data: [sectionView]
});
for (i = 0; i < 3; i++) sectionView.add(Ti.UI.createTableViewRow({ title: 'Row #' + i }));
tableView.addEventListener('click', function (e) {
Ti.API.info(e.sectionIndex + ' : ' + e.index);
});
win.add(tableView);
win.open();
Attachments
| File | Date | Size |
|---|---|---|
| TIMOB19962.JPG | 2016-07-11T21:13:53.000+0000 | 54911 |
Partially implemented: https://github.com/appcelerator/titanium_mobile_windows/pull/616
Split original ticket into TIMOB-23325, TIMOB-23326, TIMOB-23328, TIMOB-23329, TIMOB-23330 and TIMOB-23331.
Reopening ticket: Windows 10 Pro Ti SDK: 5.4.0.v20160705213725 Appc NPM: 4.2.7-2 Appc CLI: 5.4.0-26 Appc Studio: 4.7.0.201606220541 Lumia 930: 10.0 Lumia 520 : 8.1 When using the code below, the footerTitle for the tableView is not set. I can however set the footerTitle of a tableViewSection, as shown in the commented section.
var win = Ti.UI.createWindow(); var sectionFruit = Ti.UI.createTableViewSection({ //footerTitle: 'I was set on section' }); sectionFruit.add(Ti.UI.createTableViewRow({ title: 'Apples' })); sectionFruit.add(Ti.UI.createTableViewRow({ title: 'Bananas' })); var table = Ti.UI.createTableView({ data: [sectionFruit], footerTitle: 'I was set on tableView' }); win.add(table); win.open();master: https://github.com/appcelerator/titanium_mobile_windows/pull/776
Verified using: OS: Microsoft Windows 10 Pro 10.0.14393 Appc core: 6.0.0-57 Appc NPM: 4.2.8-7 Ti SDK: 6.0.0.v20161006171259 Appc Studio: 4.8.0.201610060953 Code in the description and code in my earlier comment now work as expected and I am able to sent footerView and footerTitle on a TableView Closing ticket