toolbox/
folder in your extension.label
: The tool group title shown in the Toolbox.id
: Unique identifier.diagram-types
: A list of diagram types. The tool group will be shown only when one of the diagram-types is active. (e.g. "UMLClassDiagram"
, "UMLUseCaseDiagram"
, ...)items
: A list of tool item definitions.label
: The tool item title shown in the Toolboxid
: Unique identifier of the tool item.icon
: Icon CSS class name. You can specify already defined icon names (e.g. "icon-UMLClass"
, "icon-UMLPackage"
, ...) or your own CSS class name in stylesheets of your extension.rubberband
: A type of rubberband. One of "rect"
(for sizable node-type elements), "line"
(for edge-type elements), "point"
(for fixed-size node-type elements).command
: A command name to be executed.command-arg
: An argument object will be passed to the command.app.factory.createModelAndView()
function to create an element. See the section for more detail.options
object to the command. The passed options
parameter contains:diagram
: The active diagram.id
: The identifier of tool item.x1
, y1
, x2
, y2
: The user dragged area on the diagram.command-arg
are combined.