Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In Titanium how do I execute a button click event from code?

I tried

btn.click();

And the error message is 'Cannot call property click in object ti.modules.titanium.ui.ButtonProxy@44f61. It is not a function, it is "object"'

like image 794
David Silva Smith Avatar asked Jul 20 '26 16:07

David Silva Smith


1 Answers

btn.fireEvent('click');

this should work

like image 192
Aaron Saunders Avatar answered Jul 22 '26 04:07

Aaron Saunders