You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: components/diagram/connections.md
+81Lines changed: 81 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -126,6 +126,87 @@ Note the difference between caps and selection handles:
126
126
</TelerikDiagram>
127
127
````
128
128
129
+
## Connection Text
130
+
131
+
The Diagram allows you to display text labels on Connections and control their position and offset from the Connection path. You can configure the text content, color, and precise positioning relative to the Connection.
132
+
133
+
The text positioning is controlled by two parameters:
134
+
135
+
*`Offset`—the distance in pixels between the label and the Connection path
136
+
* Position settings that use the following enums:
137
+
*`DiagramConnectionsContentPositionHorizontal`—`Left` or `Right`
138
+
*`DiagramConnectionsContentPositionVertical`—`Top` or `Bottom`
139
+
140
+
To configure Connection text globally for all Connections, use the `Text`, `Color`, and `Offset` parameters of `<DiagramConnectionDefaultsContent>`, and the `Horizontal` and `Vertical` parameters of `<DiagramConnectionDefaultsContentPosition>`.
141
+
142
+
To configure the text for a specific Connection, use the `Text`, `Color`, and `Offset` parameters of `<DiagramConnectionContent>`, and the `Horizontal` and `Vertical` parameters of `<DiagramConnectionContentPosition>`.
The Diagram allows you to display tooltips when hovering over Connections. Each Connection requires explicit tooltip content configuration through the `Template` parameter.
171
+
172
+
The available tooltip parameters are:
173
+
174
+
*`Visible` (bool, default: `false`)—controls whether the tooltip is displayed on hover
175
+
*`Class` (string)—applies a custom CSS class to the tooltip for styling
176
+
*`Template` (RenderFragment)—defines the custom content to display in the tooltip
Selection handles are the additional visual elements that appear at both ends of a Connection when it is selected (clicked). The handles appear on top of the [caps and connectors](slug:diagram-overview#diagram-elements).
Copy file name to clipboardExpand all lines: components/diagram/shapes.md
+40Lines changed: 40 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -207,6 +207,46 @@ You can customize connectors globally or per shape. Connectors settings are part
207
207
</TelerikDiagram>
208
208
````
209
209
210
+
## Tooltips
211
+
212
+
The Diagram allows you to display tooltips when hovering over Shapes. Each Shape requires explicit tooltip content configuration through the `Template` parameter.
213
+
214
+
The available tooltip parameters are:
215
+
216
+
*`Visible` (bool, default: `false`)—controls whether the tooltip is displayed on hover
217
+
*`Class` (string)—applies a custom CSS class to the tooltip for styling
218
+
*`Template` (RenderFragment)—defines the custom content to display in the tooltip
0 commit comments