Creates a combobutton, which is a multi-functional button. It enables user to specify a callback action to be performed when it is clicked.
Creates a combobutton. Its main div is accessible as OAT.Combobutton::div.
Adds a new option, described as textValue with image located at imagePath. When this option is clicked, callback is called.
Removes index-th option.
CSS class of the button options list.
CSS class of the dropdown clicker image.
CSS class of the button option div.
CSS class of the div with textual description of the option.
CSS class that is added/removed to option whenever the button is clicked/released.
var cb = new OAT.Combobutton(); document.body.appendChild( cb.div ); cb.addOption("img1.gif", "option 1", function(){}); cb.addOption("img2.gif", "option 2", function(){}); cb.removeOption(0);