Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19962] Windows: Implement Titanium.UI.TableView footerView/footerTitle

GitHub Issuen/a
TypeImprovement
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2016-07-15T00:06:03.000+0000
Affected Version/sRelease 5.1.0
Fix Version/sRelease 6.0.0
ComponentsWindows
Labelsn/a
ReporterKota Iguchi
AssigneeGary Mathews
Created2015-11-13T08:40:38.000+0000
Updated2016-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

FileDateSize
TIMOB19962.JPG2016-07-11T21:13:53.000+000054911

Comments

  1. Kota Iguchi 2016-04-12

    Partially implemented: https://github.com/appcelerator/titanium_mobile_windows/pull/616
  2. Kota Iguchi 2016-05-05

    Split original ticket into TIMOB-23325, TIMOB-23326, TIMOB-23328, TIMOB-23329, TIMOB-23330 and TIMOB-23331.
  3. Ewan Harris 2016-07-08

    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();
       
  4. Gary Mathews 2016-07-11

    master: https://github.com/appcelerator/titanium_mobile_windows/pull/776
  5. Ewan Harris 2016-10-07

    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

JSON Source