Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25563] Windows: TableViewRow click event should contain rowData

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2018-05-23T23:57:33.000+0000
Affected Version/sRelease 6.3.0
Fix Version/sRelease 7.3.0
ComponentsWindows
Labelsn/a
ReporterKota Iguchi
AssigneeKota Iguchi
Created2017-11-28T03:22:59.000+0000
Updated2018-06-18T17:49:42.000+0000

Description

click event in Ti.UI.TableViewRow should contain row data information such as rowData and section etc according to the [API doc](http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.TableViewRow-event-click).
var win = Ti.UI.createWindow();

var sectionFruit = Ti.UI.createTableViewSection({ headerTitle: 'Fruit' });
var row = Ti.UI.createTableViewRow({ title: 'Apples' });
sectionFruit.add(row);

row.addEventListener('click', function (e) {
    alert(JSON.stringify(e.rowData));
});

var table = Ti.UI.createTableView({
    data: [sectionFruit]
});

win.add(table);
win.open();
Expected: Clicking row should show row data.

Comments

  1. Kota Iguchi 2017-12-05

    https://github.com/appcelerator/titanium_mobile_windows/pull/1161
  2. Samir Mohammed 2018-06-18

    Closing ticket. Fix can be seen in SDK Version: 7.3.0.v20180618062809 Test and other information can be found at: https://github.com/appcelerator/titanium_mobile_windows/pull/1161

JSON Source