DiagramConnectionContentSettingsTagHelper
Example
Razor
<content>
<border />
<content-template></content-template>
<padding />
<position />
</content>
ChildTags
| Tag Name | Details |
|---|---|
| border | DiagramConnectionContentBorderSettingsTagHelper |
| content-template | TemplateTagHelper |
| padding | DiagramConnectionContentPaddingSettingsTagHelper |
| position | DiagramConnectionContentPositionSettingsTagHelper |
Attributes
| Attribute | Type | Description |
|---|---|---|
| background | String | The background color of the connection label. Accepts valid CSS colors. |
| color | String | The color of the connection content text. |
| font-family | String | The font family of the connection content text. |
| font-size | Double | The font size of the connection content text. |
| font-style | String | The font style of the connection content text. |
| font-weight | String | The font weight of the connection content text. |
| offset | Double | Defines the distance (in pixels) between the label and the connection path. |
| position | String | Defines the position of the label relative to the connection path. Can be set to "inline" to position the label along the connection path, or an object with vertical and horizontal properties. |
| template | String | Represents a collection of templates defined for the component. |
| template-handler | String | The template which renders the labels. This option expects the name of a JavaScript function that will be called to return the template. |
| template-id | String | The template which renders the labels. This option expects the ID of the script element that contains the template. |
| template-view | IHtmlContent | The template which renders the labels. This option expects the instance containing the created HTML. |
| text | String | The text displayed for the connection. |
| visual | String | A function returning a visual element to render for the content of the connection. |