Overview | IndexGodLikeMouse JavaScript Framework
FRAMES | NO FRAMES

GLM.UI.ToolBar

GLM.UI.ToolBar

Class for creating a tool bar.

Parameters:

toolBarID - The id of the tag to use as a toolbar.

Returns:

The new GLM.UI.ToolBar object

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