Change Log

1.7.1-3

Changed RockerControl from an option to a MenuOptionsType

The new format is demonstrated below:

$('input#on_off').menuoptions({"Sort": [],
     "Data": { 1: "On", 2:"Off" },
     "MenuOptionsType":"Rocker", // Rocker is now specified here
     "onSelect": function(mo, data) {  console.log(data); }
});

The old format is demonstrated below ( will not work in versions > 1.7.1-2 ):

$('input#on_off').menuoptions({"Sort": [],
     "Data": { 1: "On", 2:"Off" },
     "RockerControl": True, // this won't work after 1.7.1-2
     "onSelect": function(mo, data) {  console.log(data); }
});

1.7.1-7

Path to static files has changed:

New path for static files
Old path New path
media/javascript media/js
media/style media/css
media/images media/imgs

ShowDownArrow is no longer true or false

ShowDownArrow defaults to color black and allows that color to be overridden with any color you pass in. You can also pass in the “None” keyword, indicating that no arrow will be added to the menu header element.

The old format will now default to a black arrow being added to the menu header element.

$('button[id$="menutest"]').menuoptions({
    "Data": [ {"javascript": function() { alert('Some javascript was run'); } },
              {"Google": "http://www.google.com"},
              {"Yahoo": "http://www.yahoo.com"}],
    "MenuOptionsType": "Navigate",
    });

The new format (below), where arrow color is specified

$('button[id$="menutest"]').menuoptions({
    "Data": [ {"javascript": function() { alert('Some javascript was run'); } },
              {"Google": "http://www.google.com"},
              {"Yahoo": "http://www.yahoo.com"}],
    "MenuOptionsType": "Navigate",
    "ShowDownArrow": "silver" // color of arrow is now silver, not black
    });

1.7.3-15

deprecated refreshData

Instead, call MenuOptions the same way you would when initializing (code examples here)

1.7.4-7

deprecated add_menuoption_key

deprecated set_select_value

Added DataKeyNames

DataKeyNames allows you to utilize Data that has extra, unneeded data, only picking out the key and value fields that you specify.

Added data structure tests for menus

1.8.0

refactor source into several js file

add input masking

enable input masking and autocomplete together