DiagramConnectionDefaultsSettingsBuilder
Methods
Content(System.Action)
Defines the default label displayed on the connection path.
Parameters
configurator - System.Action<DiagramConnectionDefaultsContentSettingsBuilder>
The action that configures the content.
Example
@(Html.Kendo().Diagram()
.Name("diagram")
.ConnectionDefaults(cd => cd
.Content(c => c.Color("#979797").FontSize(16))
)
)
Editable(System.Boolean)
Defines the default editing behavior of the connections.
Parameters
enabled - System.Boolean
The value that enables or disables the connections editing.
Example
@(Html.Kendo().Diagram()
.Name("diagram")
.ConnectionDefaults(cd => cd.Editable(false))
)
Editable(System.Action)
Defines the default editing behavior of the connections.
Parameters
configurator - System.Action<DiagramConnectionDefaultsEditableSettingsBuilder>
The action that configures the editable settings.
Example
@(Html.Kendo().Diagram()
.Name("diagram")
.ConnectionDefaults(cd => cd
.Editable(c => c.Drag(false).Remove(true))
)
)
EndCap(System.String)
Defines the default connection end cap type. The supported values are: "none" (default), "ArrowEnd" (a filled arrow), and "FilledCircle" (a filled circle).
Parameters
type - System.String
The value that configures the end cap type.
Example
@(Html.Kendo().Diagram()
.Name("diagram")
.ConnectionDefaults(cd => cd
.EndCap("ArrowEnd")
)
)
EndCap(System.Action)
Defines the default end cap configuration of the connections.
Parameters
configurator - System.Action<DiagramConnectionDefaultsEndCapSettingsBuilder>
The action that configures the end cap settings.
Example
@(Html.Kendo().Diagram()
.Name("diagram")
.ConnectionDefaults(cd => cd
.EndCap(endCap => endCap.Type("FilledCircle").Stroke(s => s.Color("blue").Width(2)).Fill(f => f.Color("red")))
)
)
Hover(System.Action)
Defines the default styling that is applied when the user hovers over a connection.
Parameters
configurator - System.Action<DiagramConnectionDefaultsHoverSettingsBuilder>
The action that configures the hover settings.
Example
@(Html.Kendo().Diagram()
.Name("diagram")
.ConnectionDefaults(cd => cd
.Hover(h => h.Stroke(s => s.Color("red")))
)
)
Selectable(System.Boolean)
Specifies if the connections can be selected by default.
Parameters
value - System.Boolean
The value that configures the selectable option.
Example
@(Html.Kendo().Diagram()
.Name("diagram")
.ConnectionDefaults(cd => cd.Selectable(false))
)
Selection(System.Action)
Defines the default connection selection options.
Parameters
configurator - System.Action<DiagramConnectionDefaultsSelectionSettingsBuilder>
The action that configures the selection settings.
Example
@(Html.Kendo().Diagram()
.Name("diagram")
.ConnectionDefaults(cd => cd
.Selection(s => s.Handles(h => h.Fill(f => f.Color("yellow")).Stroke(s => s.Color("white")).Width(20).Height(20)))
)
)
StartCap(System.String)
Defines the default connection start cap type. The supported values are: "none" (default), "ArrowStart" (a filled arrow), and "FilledCircle" (a filled circle).
Parameters
type - System.String
The value that configures the start cap type.
Example
@(Html.Kendo().Diagram()
.Name("diagram")
.ConnectionDefaults(cd => cd
.StartCap("ArrowStart")
)
)
StartCap(System.Action)
Defines the default start cap configuration of the connections.
Parameters
configurator - System.Action<DiagramConnectionDefaultsStartCapSettingsBuilder>
The action that configures the start cap settings.
Example
@(Html.Kendo().Diagram()
.Name("diagram")
.ConnectionDefaults(cd => cd
.StartCap(startCap => startCap.Type("FilledCircle").Stroke(s => s.Color("blue").Width(3)).Fill(f => f.Color("yellow")))
)
)
Stroke(System.Action)
Defines the default line configuration of the connections.
Parameters
configurator - System.Action<DiagramConnectionDefaultsStrokeSettingsBuilder>
The action that configures the stroke settings.
Example
@(Html.Kendo().Diagram()
.Name("diagram")
.ConnectionDefaults(cd => cd
.Stroke(s => s.Color("blue").Width(3))
)
)
Type(Kendo.Mvc.UI.DiagramConnectionType)
Defines the default connections type.
Parameters
value - DiagramConnectionType
The enum value that configures the connection type.
Example
@(Html.Kendo().Diagram()
.Name("diagram")
.ConnectionDefaults(cd => cd
.Type(DiagramConnectionType.Cascading)
)
)
FromConnector(System.String)
The default source connector. The supported values are: "top", "right", "bottom", "left", and "auto" (default).
Parameters
value - System.String
The value that configures the default source connector.
Example
@(Html.Kendo().Diagram()
.Name("diagram")
.ConnectionDefaults(cd => cd
.FromConnector("bottom")
)
)
ToConnector(System.String)
The default target connector. The supported values are: "top", "right", "bottom", "left", and "auto" (default).
Parameters
value - System.String
The value that configures the default target connector.
Example
@(Html.Kendo().Diagram()
.Name("diagram")
.ConnectionDefaults(cd => cd
.ToConnector("top")
)
)