Represents a button component for CompositeNodes.
Namespace: MindFusion.Diagramming
Package: Button.js
JavaScript Copy Code |
---|
// class |
Buttons 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.
The following example adds a button to CompositeNode template:
JavaScript Copy Code |
---|
{ component: "Button", brush: "#ccc", text: "Delete", width: 30, cornerRadius: 3.5, clickHandler: "onDeleteClick" } |
MindFusion.Drawing.Component
MindFusion.Diagramming.Button
NetDiagram Programmer's Guide | © 2023 MindFusion |