Represents a button component for CompositeNodes.
Namespace: MindFusion.Diagramming
Assembly: Button.js
SyntaxJavaScript
Copy Code
|
|---|
// class |
RemarksButtons respond to user clicks by calling the JavaScript function whose name is assigned to their clickHandler attribute. A button can show a text label assigned to the text attribute, or an image whose URL is assigned to imageLocation.
ExampleThe following example adds a button to CompositeNode template:
JavaScript
Copy Code
|
|---|
| { component: "Button", brush: "#ccc", text: "Delete", width: 30, cornerRadius: 3.5, clickHandler: "onDeleteClick" } |
Inheritance HierarchyMindFusion.Drawing.Component
MindFusion.Diagramming.Button
See Also