Appearance
@vue-flow/monorepo • Docs
Interface: DefaultEdge<Data, CustomEvents, Type>
Extends
Type Parameters
• Data = ElementData
• CustomEvents extends Record<string, CustomEvent> = any
• Type extends string = string
Properties
animated?
optionalanimated:boolean
Animated edge
ariaLabel?
optionalariaLabel:null|string
class?
optionalclass:string|string[] |Record<string,any> |ClassFunc<GraphEdge<Data,CustomEvents,string>>
Additional class names, can be a string or a callback returning a string (receives current flow element)
data?
optionaldata:Data
Additional data that is passed to your custom components
deletable?
optionaldeletable:boolean
Disable/enable deleting edge
domAttributes?
optionaldomAttributes:Omit<SVGAttributes,"id"|"style"|"className"|"role"|"aria-label"|"onClick"|"onMouseenter"|"onMousemove"|"onMouseleave"|"onContextmenu"|"onDblclick"|"onKeyDown">
General escape hatch for adding custom attributes to the edge's DOM element.
events?
optionalevents:Partial<EdgeEventsHandler<CustomEvents>>
Deprecated
will be removed in the next major version
focusable?
optionalfocusable:boolean
Disable/enable focusing edge (a11y)
hidden?
optionalhidden:boolean
Is edge hidden
id
id:
string
Unique edge id
interactionWidth?
optionalinteractionWidth:number
Radius of mouse event triggers (to ease selecting edges), defaults to 2
label?
optionallabel:string|VNode<RendererNode,RendererElement,object> |Component<EdgeTextProps>
An edge label
labelBgBorderRadius?
optionallabelBgBorderRadius:number
Label Bg border radius
Inherited from
EdgeLabelOptions.labelBgBorderRadius
labelBgPadding?
optionallabelBgPadding: [number,number]
Label Bg padding
Inherited from
EdgeLabelOptions.labelBgPadding
labelBgStyle?
optionallabelBgStyle:CSSProperties
Label Bg styles (CSSProperties)
Inherited from
labelShowBg?
optionallabelShowBg:boolean
Show label bg
Inherited from
labelStyle?
optionallabelStyle:CSSProperties
Label styles (CSSProperties)
Inherited from
markerEnd?
optionalmarkerEnd:EdgeMarkerType
EdgeMarker
markerStart?
optionalmarkerStart:EdgeMarkerType
EdgeMarker
selectable?
optionalselectable:boolean
Disable/enable selecting edge
source
source:
string
Source node id
sourceHandle?
optionalsourceHandle:null|string
Source handle id
style?
optionalstyle:Styles|StyleFunc<GraphEdge<Data,CustomEvents,string>>
Additional styles, can be an object or a callback returning an object (receives current flow element)
target
target:
string
Target node id
targetHandle?
optionaltargetHandle:null|string
Target handle id
template?
optionaltemplate:EdgeComponent
Overwrites current edge type
type?
optionaltype:Type
Edge type, can be a default type or a custom type
updatable?
optionalupdatable:EdgeUpdatable
Disable/enable updating edge
zIndex?
optionalzIndex:number
Aria label for edge (a11y)