[TIMOB-16972] Blackberry : Tableview events like longclick, longpress are not working
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Hold |
Resolution Date | 2015-04-14T17:12:34.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | BlackBerry |
Labels | defect |
Reporter | Sapan Varshney |
Assignee | Pedro Enrique |
Created | 2014-05-15T09:09:00.000+0000 |
Updated | 2017-03-14T03:36:04.000+0000 |
Description
Tableview events like longclick, longpress not working working on blackberry platform.
Steps to reproduce:
1. Copy paste the code in classic Project in app.js file and run the app.
2. Click on table row.
Actual Result:
alert showing the title and rowindex is not visible
Expected Result:
alert showing the title and rowindex should be visible
{Code}
var win=Ti.UI.createWindow({
backgroundColor:'white'
});
var tableData = [];
// Create a TableView.
var tblView = Ti.UI.createTableView({top:0,height:Ti.UI.SIZE});
// Populate the TableView data.
for(var i=0;i<4;i++){
var row=Ti.UI.createTableViewRow({
title: 'Row'+i,
height:50,
});
tableData.push(row);
};
//event listener for table
tblView.addEventListener('longpress',function(e) {
alert('title: \'' + e.row.title + '\', index: ' + e.index);
});
//Set the data in table view
tblView.setData(tableData);
// Add to the parent view.
win.add(tblView);
win.open();
{Code}
Placing these items on hold for the moment based on community interest.
Closing ticket as BlackBerry is no longer supported by us.