Skip to main content

Interface: RenameLinkProvider

Defined in: diagram/customization.ts:238

Provides a strategy to rename diagram links (change labels).

Methods

canRename()

canRename(link): boolean

Defined in: diagram/customization.ts:242

Returns true if the target link has editable label.

Parameters

ParameterType

link

Link

Returns

boolean


getLabel()

getLabel(link): undefined | string

Defined in: diagram/customization.ts:247

Gets changed label for the link if renamed, otherwise undefined.

Parameters

ParameterType

link

Link

Returns

undefined | string


setLabel()

setLabel(link, label): void

Defined in: diagram/customization.ts:251

Sets changed label for the link.

Parameters

ParameterType

link

Link

label

string

Returns

void