Hi guys,
Might sound like a broad subject, but it's really just one focus area. I have downloaded the - Codestrong Alloy app from GITHUB from here: https://github.com/appcelerator/Codestrong, and noticed it uses a drawer file to append new views to the page, somewhat like this:
Ti.App.fireEvent('app:open.drawer', { controller:'myPage' });Now the 'controller' refers to myPage.xml - And this opens fine.
How Can i however close the drawer from myPage.js? Currently the only way to close it us using the close method within the drawer.js file itself.
Thanks in advance
1 Answer
you need to fire the 'app:close.drawer' event for close the drawer:
with your case, just pass your controller name in it is ok:
Ti.App.fireEvent('app:close.drawer', { controller:'myPage' });you can find the releate source code in header.js
Your Answer
Think you can help? Login to answer this question!