Event parameters documenation?
Hi
In capturing fired events, it is usual to have something like:
win.addEventListener('click', function(e)
{
// event data
var index = e.index;
var section = e.section;
var row = e.row;
var rowdata = e.rowData;
var source = e.source;
// DO some stuff
}
what are other e.XXX ? that we can use?
2 Answers
-
Accepted Answer
You can always trace the event object.. Ti.API.info(e) to see whats inside. Or better yet traverse through each property using for..in loop.
The docs also show all possible event properties. Scroll to bottom of page. See this example – https://developer.appcelerator.com/apidoc/mobile/1.1/Titanium.UI.TableViewRow
-
Under the API Doc. Every Titanium.UI controls has a table of Events and each of them has Event Properties, which will be the e.XXX you were looking for.