forked from mwbrooks/cordova-plugin-menu
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 96b71a3
Showing
2 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# OS X | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(...) | ||
|