Skip to content

An Appcelerator Alloy Widget to implement a "drawer-style" menu just like Facebook's and YouTube's

License

Notifications You must be signed in to change notification settings

vegs/alloy-widget-drawermenu

 
 

Repository files navigation

DrawerWidget

This is an Appcelerator Alloy widget to implement a nice "drawer-type" menu on you iOS and Android Apps.

This Widget exposes two views: drawermenuview and drawermainview

Adding views

To use, simply add views to these containers. Example:

Assuming you have a CommonJS module that returns your views:

var menuView=common.getMenuView();

var mainView=common.getMainView();

Then add these views to the exposed containers:

$.drawermenu.drawermenuview.add(menuView);

$.drawermenu.drawermainview.add(mainView);

Triggering the Show and Hide

Inside your "Main View" you should have a button to trigger the open and close of the "drawer".

var menubutton.addEventListener('click',function(e){ $.drawermenu.showhidemenu(); })

About

An Appcelerator Alloy Widget to implement a "drawer-style" menu just like Facebook's and YouTube's

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published