Skip to content

Simple system for specifying functions as menu items.#63

Open
andr3wmac wants to merge 1 commit intobarmalei:masterfrom
andr3wmac:menu_functions
Open

Simple system for specifying functions as menu items.#63
andr3wmac wants to merge 1 commit intobarmalei:masterfrom
andr3wmac:menu_functions

Conversation

@andr3wmac
Copy link
Copy Markdown

Example usage:

    var mbar = new zebra.ui.Menubar({
           "Item 1": {
               "Subitem 1.1":null,
               "Subitem 1.2": function() { console.log("Item Pressed!"); },
               "Subitem 1.3":null
           }
       });

Example usage:

        var mbar = new zebra.ui.Menubar({
               "Item 1": {
                   "Subitem 1.1":null,
                   "Subitem 1.2": function() { console.log("Item Pressed!"); },
                   "Subitem 1.3":null
               }
           });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant