Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mwbrooks committed Apr 27, 2011
0 parents commit 96b71a3
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# OS X
.DS_Store
45 changes: 45 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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:__

<menu type="toolbar" label="Tweets">
<command type="command" label="Back" icon="back-arrow.png" disabled="false" accesskey="back" />
<command type="command" label="Options" icon="gear.png" disabled="false" />
</menu>

__Context Menu:__

<menu type="context">
<command label="Tweets" icon="bubble.png" disabled="false" />
<command label="Replies" icon="reply.png" disabled="false" />
<command label="Search" icon="search.png" disabled="false" accesskey="search" />
<command label="Profile" icon="profile.png" disabled="false" />
</menu>

### JavaScript

__HTMLMenuElement:__

- appendChild(...)
- removeChild(...)
- setAttribute(...);
- removeAttribute(...)

__HTMLCommandElement:__

- setAttribute(...);
- removeAttribute(...)

0 comments on commit 96b71a3

Please sign in to comment.