Represents a button component for CompositeNodes.
Namespace: MindFusion.Diagramming
File: 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
MindFusion.Diagramming for JavaScript Programmer's Guide | © 2024 MindFusion |