Skip to content

Native UI component for PhoneGap apps that want a side navigation menu.

License

Notifications You must be signed in to change notification settings

OBout/phonegap-plugin-sidebar

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Native UI component for PhoneGap apps that want a side navigation menu.

To run tests (iOS only for now) you'll need cordova-paramedic installed

> npm install cordova-paramedic
> cordova-paramedic --platform ios

To install in your project

> cordova plugin add https://github.com/purplecabbage/phonegap-plugin-sidebar
> // again, that was iOS only ...

API

pgsidebar.show(cbSuccess,cbError,items)
  • cbSuccess: callback to be called when the sidebar control is shown

  • cbError: callback to be called if there was an error showing the sidebar control

  • items: an array of strings to display as a list in the sidebar control, when the user selects an item, the index in this array will be returned to the callback function

    pgsidebar.hide(cbSuccess,cbError)

  • cbSuccess: callback to be called when the sidebar control is hidden

  • cbError: callback to be called if there was an error hiding the sidebar control

Demo

To run the demo app (iOS only for now)

Note: you only get the demo app if you download/clone/fork the repo from github. npm published versions do not include the demo app.

cd demo/
cordova plugin add cordova-plugin-statusbar
cordova plugin add --link ../
cordova platform add ios
cordova run ios

About

Native UI component for PhoneGap apps that want a side navigation menu.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 50.3%
  • JavaScript 26.3%
  • CSS 13.7%
  • HTML 9.7%