Button Class
Remarks See Also

Represents a button component for CompositeNodes.

Namespace: MindFusion.Diagramming
Package: Button.js


JavaScript  Copy Code

// class
Button.prototype = {}


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"

 Inheritance Hierarchy


 See Also