Warning: Use of undefined constant Symbol - assumed 'Symbol' (this will throw an Error in a future version of PHP) in /mnt/new-ebs/workbench-106550/lib/dojo/util/docscripts/lib/parser2/dojo2.inc on line 215 Warning: Use of undefined constant JavaScriptSymbol - assumed 'JavaScriptSymbol' (this will throw an Error in a future version of PHP) in /mnt/new-ebs/workbench-106550/lib/dojo/util/docscripts/lib/parser2/dojo2.inc on line 215

dojox/drawing/ui/dom/Toolbar.js

  • Provides:

    • dojox.drawing.ui.dom.Toolbar
  • dojox.drawing.ui.dom.Toolbar

    • type
      Function
    • parameters:
      • props
      • node
    • summary
      Creates a Toolbar to be used with a DojoX Drawing.
    • description
      Currently works in markup only. A class is required with
      either horizontal or vertical as a class (IE prevented using
      either as a default). Assign an attribute of 'drawingId' with
      the id of the DojoX Drawing to which this is assigned.
      The node children will be assigned as the Tools in the toolbar.
      Plugins can also be assigned.
      The Toolbar is largely self contained and has no real public
      methods or events. the Drawing object should be used.
    • example
      	<div dojoType="dojox.drawing.Toolbar" drawingId="drawing" class="drawingToolbar vertical">
      		<div tool="dojox.drawing.tools.Line" 				selected="false">	Line</div>
      		<div tool="dojox.drawing.tools.Rect" 				selected="true">	Rect</div>
      		<div plugin="dojox.drawing.plugins.tools.Zoom" options="{zoomInc:.1,minZoom:.5,maxZoom:2}">Zoom</div>
      	</div>
      
      TODO: Toolbar works in markup only. Need programmatic.
      NOTE: There are plans to make the toolbar out of dojox.gfx vectors.
      This may change the APIs in the future.
  • dojox.drawing.ui.dom.Toolbar.baseClass

    • type
      String
    • summary
      The CSS style to apply to the toolbar node
  • dojox.drawing.ui.dom.Toolbar.buttonClass

    • type
      String
    • summary
      The CSS style to apply to each button node
  • dojox.drawing.ui.dom.Toolbar.iconClass

    • type
      String
    • summary
      The CSS style to apply to each button icon node
  • dojox.drawing.ui.dom.Toolbar.constructor

    • constructor - constructor
    • type
      Function
    • parameters:
      • props
      • node
  • dojox.drawing.ui.dom.Toolbar.createIcon

    • parameters:
      • node: (typeof HTMLNode)
        The button node.
      • constr: (typeof ?)
        Function 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
    • summary
      Internal. Creates an icon node for each button.
      arguments:
    • type
      Function
  • dojox.drawing.ui.dom.Toolbar.createTool

    • parameters:
      • node: (typeof HTMLNode)
        The button node.
    • summary
      Creates a button on the Toolbar that is
      a Tool, not a Plugin. Tools draw Stencils,
      Plugins do actions.
      arguments:
    • type
      Function
  • dojox.drawing.ui.dom.Toolbar.parse

    • summary
      Initializing method that reads the dom node and its
      children for tools and plugins.
    • type
      Function
  • dojox.drawing.ui.dom.Toolbar.drawing

    • type
      Object
  • dojox.drawing.ui.dom.Toolbar.toolNodes

    • type
      Object
  • dojox.drawing.ui.dom.Toolbar.onClick

    • parameters:
      • type: (typeof String)
        Fully qualified name of class. ex:
        dojox.drawing.tools.Ellipse
    • summary
      Event fired from clicking a Tool, not a PLugin.
      Plugin clicks are handled within the plugin's class.
      arguments:
    • type
      Function
  • dojox.drawing.ui.dom.Toolbar.onSetTool

    • parameters:
      • type: (typeof String)
    • summary
      handles buttons clicks and selects or deselects
    • type
      Function
  • dojox.drawing.ui.dom

    • type
      Object
  • dojox.drawing.ui

    • type
      Object
  • dojox.drawing

    • type
      Object
  • dojox

    • type
      Object