Sorry for the quite simple question, but since the docs are a bit lacking, I'm wondering how to use fireEvent on a TableView that would emulate the 'click' handler for a row? I've tried all means to replicate the data and pass it via fireEvent, but nothing seems to work.
Thanks in advance!
3 Answers
hi andrew,
please check this pastie & inform me if u have any douts still
http://www.pastie.org/1099675
Thks & regards...
hi andrew,
please check this pastie & inform me if u have any douts still
http://www.pastie.org/1099675
Thks & regards...
Varun,
Thanks for the code. I'll i see you actively doing is passing a function to an external source. What i need to do is simulate the 'click' event on a tableview, and act as though the user is clicking a particular row.
I.E (pseudo-code)
tableview = Titanium.UI.createTableView().... tableview.addEventListener('click', function() { if (something) { // This is where the trouble is, what do i pass to // physically emulate clicking index #3 in the tableview? tableview.fireEvent('click', {data: 3}); } });
Your Answer
Think you can help? Login to answer this question!