Overview | IndexGodLikeMouse JavaScript Framework
FRAMES | NO FRAMES

GLM.UI.Toolbar.add( item )

GLM.UI.Toolbar.add( item )

Method for adding a toolbar item

Parameters:

item - The toolbar item to add

Example:

//Assume a tag exists:
var toolBar = new GLM.UI.ToolBar("myToolBar");

toolBar.add( {Image: "images/Toolbar_FileNew.gif", Tooltip: "Create new file", Action: "FileNew_Click()"} ); //create a new file item.
toolBar.add( {Image: "images/Toolbar_FileOpen.gif", Tooltip: "Open file", Action: "FileOpen_Click()"} ); //create an open file item.
toolBar.add( {Image: "images/Toolbar_FileSave.gif", Tooltip: "Save file", Action: "FileSave_Click()"} ); //create an save file item.
toolBar.render(); //renders the control at the tag location.



Overview | IndexGodLikeMouse JavaScript Framework
FRAMES | NO FRAMES