Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Event parameters documenation?


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?

— asked March 26th 2010 by Peter Lum
  • event
  • fire
  • parameters

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

    — answered March 26th 2010 by First Name Last Name
    1 Comment
    • The docs do NOT show ALL possible event props. Maybe all for some objects, such as the 'TableViewRow' your showing, but not for all objects. One example would be HTTPClient.onload

      — commented July 31st 2011 by Brian Burgess
  • 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.

    — answered March 26th 2010 by William Xue
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.