Usage
Signature:
Generic Parameters
Parameter Description K1 Type of key of the nodeData dataprovider K2 Type of key of the linkData dataprovider D2 Type of data from the linkData dataprovider
Typescript Import Format
//To typecheck the element APIs, import as below.
import { DiagramLinkElement } from "ojs/ojdiagram";
//For the transpiled javascript to load the element's module, import as below
import "ojs/ojdiagram";
For additional information visit:
Attributes
-
categories :Array.<string>
-
An array of category strings corresponding to this link. This allows highlighting and filtering of links. By default, the label is used as the link category.
-
color :string
-
The link color.
-
end-connector-type :"arrow"|"arrowConcave"|"arrowOpen"|"circle"|"none"|"rectangle"|"rectangleRounded" end-connector-type :"arrow"|"arrowOpen"|"none"
-
Specifies the type of end connector on the link. Can take the name of a built-in shape.
- Deprecated:
-
Since Description 17.0.0
We are no longer supporting this connector type. Please use the custom renderer or template instead. - Deprecated:
-
Since Description 17.0.0
We are no longer supporting this connector type. Please use the custom renderer or template instead. - Deprecated:
-
Since Description 17.0.0
We are no longer supporting this connector type. Please use the custom renderer or template instead. - Deprecated:
-
Since Description 17.0.0
We are no longer supporting this connector type. Please use the custom renderer or template instead.
Supported Values:
Value Description arrow
arrowConcave
arrowOpen
circle
none
rectangle
rectangleRounded
-
end-node :any
-
Specifies the end node id.
-
label :string
-
Text used for the link label.
- Default Value:
""
-
label-style :Partial<CSSStyleDeclaration>|null
-
The CSS style object defining the style of the diagram link label. The default values come from the CSS classes and varies based on theme. The following style properties are supported: backgroundColor, borderColor, borderWidth, borderRadius, color, cursor, fontFamily, fontSize, fontStyle, fontWeight, maxWidth, textDecoration.
-
selectable :"auto"|"off"
-
Specifies whether or not the link will be selectable.
- Default Value:
"auto"
Supported Values:
Value auto
off
-
short-desc :(string | ((context: ojDiagram.LinkShortDescContext<K1,K2,D2>) => string))
-
The text that displays in the link's tooltip. Will be lazily created if a function is used.
- Default Value:
""
-
start-connector-type :"arrow"|"arrowConcave"|"arrowOpen"|"circle"|"none"|"rectangle"|"rectangleRounded" start-connector-type :"arrow"|"arrowOpen"|"none"
-
Specifies the type of start connector on the link. Can take the name of a built-in shape.
- Deprecated:
-
Since Description 17.0.0
We are no longer supporting this connector type. Please use the custom renderer or template instead. - Deprecated:
-
Since Description 17.0.0
We are no longer supporting this connector type. Please use the custom renderer or template instead. - Deprecated:
-
Since Description 17.0.0
We are no longer supporting this connector type. Please use the custom renderer or template instead. - Deprecated:
-
Since Description 17.0.0
We are no longer supporting this connector type. Please use the custom renderer or template instead.
Supported Values:
Value Description arrow
arrowConcave
arrowOpen
circle
none
rectangle
rectangleRounded
-
start-node :any
-
Specifies the start node id.
-
svg-class-name :string
-
The CSS style class defining the style of the link.
- Default Value:
""
-
svg-style :Partial<CSSStyleDeclaration>
-
The CSS style object defining the style of the link. Only SVG CSS style properties are supported.
- Default Value:
{}
-
width :number
-
The link width in pixels.