Search
DiagramView.ItemAddedScript Method
See Also
 





Sets the name of a JavaScript function that should be invoked when an item is added to the diagram.

Namespace: MindFusion.Diagramming.Mvc
Assembly: MindFusion.Diagramming.Mvc

 Syntax

C#  Copy Code

public DiagramView ItemAddedScript (
    string value
)

Visual Basic  Copy Code

Public Function ItemAddedScript( _
    value As String _
) As DiagramView

 Parameters

value

A string specifying the name of the client-side event handler.

 Return Value

Returns this instance for method chaining.

 Remarks

This event is raised both when items are drawn interactively or added from code - unlike NodeCreated and LinkCreated which are only raised for interactively-created items.

 See Also