Basic Toolbar control.
Creates a Toolbar. Its main div is accessible as toolbar. div. You can use the following options:
Adds a new icon to Toolbar. If twoStates is true, then this icon will have two states (otherwise 1). This icon will have image located at imagePath; onHoverit will display tooltip; and clicking it will execute callback (with state #, 0 or 1, as an argument).
Adds a separator.
Remove icon.
Remove separator.
ToBeDone?
ToBeDone?
ToBeDone?
ToBeDone?
var callback = function(state) { alert(state); } var t = new OAT.Toolbar(); t.addIcon(true, "", "some tooltip", callback); document.body.appendChild(t.div);
CategoryDocumentation CategoryOAT CategoryOpenSource CategoryToBeDone?