dojox/drawing/ui/dom/Toolbar (version 1.10)

Usage

var foo = new Toolbar(props,node);
dojox/drawing/ui/dom/Toolbar
Parameter Type Description
props undefined
node undefined

Property Summary

  • baseClassThe CSS style to apply to the toolbar node
  • buttonClassThe CSS style to apply to each button node
  • iconClassThe CSS style to apply to each button icon node

Method Summary

  • createIcon(node,constr) Internal.
  • createTool(node) Creates a button on the Toolbar that is a Tool, not a Plugin.
  • parse() Initializing method that reads the dom node and its children for tools and plugins.

Event Summary

  • onClick(type) Event fired from clicking a Tool, not a PLugin.
  • onSetTool(type) handles buttons clicks and selects or deselects

Properties

baseClass

The CSS style to apply to the toolbar node

buttonClass

The CSS style to apply to each button node

iconClass

The CSS style to apply to each button icon node

Methods

createIcon(node,constr)

Internal. Creates an icon node for each button.

Parameter Type Description
node HTMLNode

The button node.

constr Function
Optional

Optional. If not supplied, an icon is not created. Information for each icon is derived from the ToolsSetup object defined at the end of each tool. See: stencil._Base

createTool(node)

Creates a button on the Toolbar that is a Tool, not a Plugin. Tools draw Stencils, Plugins do actions.

Parameter Type Description
node HTMLNode

The button node.

parse()

Initializing method that reads the dom node and its children for tools and plugins.

Events

onClick(type)

Event fired from clicking a Tool, not a PLugin. Plugin clicks are handled within the plugin's class.

Parameter Type Description
type String

Fully qualified name of class. ex: dojox.drawing.tools.Ellipse

onSetTool(type)

handles buttons clicks and selects or deselects

Parameter Type Description
type String
Error in the documentation? Can’t find what you are looking for? Let us know!