defaultItemProperties
Default property values are applied to newly created items if no other values are provided.
$(function() { $("#diagram").dxDiagram({ nodes: { //... }, defaultItemProperties: { connectorLineStart: "outlinedTriangle", connectorLineEnd: "none", connectorLineType: "straight", style: "fill: #d9d9d9; stroke: #999999", textStyle: "font-weight: bold; text-decoration: underline" } }); });
connectorLineEnd
The connectorLineEnd option specifies a tip that is displayed at a connector's end point if the toLineEndExpr option does not provide another value.
Use the DiagramConnectorLineEnd
enum to specify this option when the widget is used as an ASP.NET MVC 5 Control or a DevExtreme-Based ASP.NET Core Control. This enum accepts the following values: None
, Arrow
, OutlinedTriangle
, FilledTriangle
.
connectorLineStart
The connectorLineStart option specifies a tip that is displayed at a connector's start point if the fromLineEndExpr option does not provide another value.
Use the DiagramConnectorLineEnd
enum to specify this option when the widget is used as an ASP.NET MVC 5 Control or a DevExtreme-Based ASP.NET Core Control. This enum accepts the following values: None
, Arrow
, OutlinedTriangle
, FilledTriangle
.
connectorLineType
The connectorLineType option specifies a type of a connector if the lineTypeExpr option does not provide another value.
Use the DiagramConnectorLineType
enum to specify this option when the widget is used as an ASP.NET MVC 5 Control or a DevExtreme-Based ASP.NET Core Control. This enum accepts the following values: Straight
, Orthogonal
.
shapeMaxHeight
The shapeMaxHeight option specifies the maximum height of a shape if the maxHeight option does not provide another value.
shapeMaxWidth
The shapeMaxWidth option specifies the maximum width of a shape if the maxWidth option does not provide another value.
shapeMinHeight
The shapeMinHeight option specifies the minimum height of a shape if the minHeight option does not provide another value.
shapeMinWidth
The shapeMinWidth option specifies the minimum width of a shape if the minWidth option does not provide another value.
style
The style option specifies the style applied to a shape/connector if the nodes.styleExpr/edges.styleExpr option does not provide another value.
The style settings can be specified in the following ways:
- as inline style declaration, for instance
"fill: #d9d9d9; stroke: #999999"
, - as CSS rules presented in JSON format, , for instance
{"fill": "#d9d9d9", "stroke": "#999999"}
.
textStyle
The textStyle option specifies a text style that is applied to a shape/connector if the nodes.textStyleExpr/edges.textStyleExpr option does not provide another value.
The style settings can be specified in the following ways:
- as inline style declaration, for instance
"font-weight: bold; text-decoration: underline"
, - as CSS rules in JSON format, for instance
{ "font-weight": "bold", "text-decoration": "underline" }
.
If you have technical questions, please create a support ticket in the DevExpress Support Center.
We appreciate your feedback.