Search
Button Class
Remarks See Also
 






Represents a button component for CompositeNodes.

Namespace: MindFusion.Diagramming
File: Button.js

 Syntax

JavaScript  Copy Code

// class
Button.prototype = {}

 Remarks

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.

 Example

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

MindFusion.Drawing.Component
    MindFusion.Diagramming.Button

 See Also