A Toolbar used for holding buttons; typically representing the Stencils used for a DojoX Drawing.
Creates a GFX-based toolbar that holds GFX-based buttons. Can be either created within the actual drawing or within a separate DOM element. When within the drawing, the toolbar will cover a portion of the drawing; hence the option.
A Toolbar can be created programmatically or in markup. Currently markup is as a separate DOM element and programmatic is within the drawing.
Parameter | Type | Description |
---|---|---|
props | undefined | |
node | undefined |
dojo.connect(myDrawing, "onSurfaceReady", function(){ new dojox.drawing.ui.Toolbar({ drawing:myDrawing, tools:"all", plugs:"all", selected:"ellipse" }); }); <div dojoType="dojox.drawing.ui.Toolbar" id="gfxToolbarNode" drawingId="drawingNode" class="gfxToolbar" tools="all" plugs="all" selected="ellipse" orient="H"></div>
The amount of spce between the top and left of the toolbar and the buttons.
A comma delineated list of the plugins to include in the Toolbar. If "all" is used, all registered plugins are included.
A comma delineated list of the Stencil-tools to include in the Toolbar. If "all" is used, all registered tools are included.
The distance between the tool buttons and plug buttons
Internally used for mixing in props from an object or from a dom node.
Parameter | Type | Description |
---|---|---|
props | Array | |
objNode | Object | Node |
Plugin click event. May be connected to.
Parameter | Type | Description |
---|---|---|
button | Object |
dojo.connect(myDrawing, "onSurfaceReady", function(){ new dojox.drawing.ui.Toolbar({ drawing:myDrawing, tools:"all", plugs:"all", selected:"ellipse" }); }); <div dojoType="dojox.drawing.ui.Toolbar" id="gfxToolbarNode" drawingId="drawingNode" class="gfxToolbar" tools="all" plugs="all" selected="ellipse" orient="H"></div>
Stencil render event.
Parameter | Type | Description |
---|---|---|
stencil | Object |
dojo.connect(myDrawing, "onSurfaceReady", function(){ new dojox.drawing.ui.Toolbar({ drawing:myDrawing, tools:"all", plugs:"all", selected:"ellipse" }); }); <div dojoType="dojox.drawing.ui.Toolbar" id="gfxToolbarNode" drawingId="drawingNode" class="gfxToolbar" tools="all" plugs="all" selected="ellipse" orient="H"></div>
Tool click event. May be connected to.
Parameter | Type | Description |
---|---|---|
button | Object |
dojo.connect(myDrawing, "onSurfaceReady", function(){ new dojox.drawing.ui.Toolbar({ drawing:myDrawing, tools:"all", plugs:"all", selected:"ellipse" }); }); <div dojoType="dojox.drawing.ui.Toolbar" id="gfxToolbarNode" drawingId="drawingNode" class="gfxToolbar" tools="all" plugs="all" selected="ellipse" orient="H"></div>