Add an tool to this viewer. Each tool has a unique name/identifier.
Signature:
addTool(tool: Tool): Tool;
Parameter | Description |
---|---|
tool | The tool to be added to the viewer. Must be the instance of Modelo.View.Tool that is compatible with current platform. |
Returns:
Tool
The tool object and null if tool already exists in this viewer.
var selectElementTool = new Modelo.View.Tool.SelectElements(viewer);
viewer.addTool(selectElementTool);
selectElementTool.setEnabled(true);