triceam / app-UI

app-UI is a collection of user interface components that may be helpful to web and mobile developers for creating interactive applications using HTML and JavaScript, especially those targeting mobile devices. app-UI is a continual work in progress - it was born out of the necessity to have rich & native-feeling interfaces in HTML/JS experiences, and it works great with PhoneGap applications (http://www.phonegap.com). app-UI can easily be styled/customized using CSS.
http://triceam.github.com/app-UI/
Other
1.27k stars 239 forks source link

add methods to programmatically slide view #34

Closed turrea closed 11 years ago

turrea commented 11 years ago

methods to programmatically slide view allow for one touch sidebar menu access (ie tapping a button in the body could slide view)

bugwelle commented 11 years ago

:+1: Need this desperately :D

scottriggle commented 11 years ago

Sorry can't seem to figure out how to use open and close.

turrea commented 11 years ago

You would call those methods on the slidingView object. I believe there is a global called slidingView created when you initialize the sliding view, so you would invoke methods as follows:

window.slidingView.open();

or

slidingView.open();

or if you store the sliding view in a local var var slideMenu = new SlidingView('#id'); slideMenu.open(); slideMenu.close();

Hope that helps.

scottriggle commented 11 years ago

Worked great! Thanks!!!

morandringer commented 10 years ago

helped me too! thx!