From 96b71a3ede18dcdbb76a3340829be41dc600c4c2 Mon Sep 17 00:00:00 2001 From: Michael Brooks Date: Wed, 27 Apr 2011 16:34:17 -0700 Subject: [PATCH] Initial commit --- .gitignore | 2 ++ README.md | 45 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 .gitignore create mode 100644 README.md diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fd29596 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +# OS X +.DS_Store diff --git a/README.md b/README.md new file mode 100644 index 0000000..b48d6ca --- /dev/null +++ b/README.md @@ -0,0 +1,45 @@ +PhoneGap Plugin for Native Menus +================================ + +> HTMLMenuElement and HTMLCommandElement polyfill + +Overview +-------- + +The implementation is loosely based on the [W3C HTMLMenuElement / HTMLCommandElement Specification](http://www.w3.org/TR/html5/interactive-elements.html). + +API +--- + +### Markup + +__Toolbar:__ + + + + + + +__Context Menu:__ + + + + + + + + +### JavaScript + +__HTMLMenuElement:__ + +- appendChild(...) +- removeChild(...) +- setAttribute(...); +- removeAttribute(...) + +__HTMLCommandElement:__ + +- setAttribute(...); +- removeAttribute(...) +