Skip to main content

Interface: TemplateProps

Defined in: diagram/customization.ts:105

Props for a custom ElementTemplate component.

See

ElementTemplate

Extended by

Properties

PropertyModifierTypeDescription

element

readonly

Element

Target element to render.

elementId

readonly

string

Target element ID (Element.id).

elementState

readonly

TemplateState

Template-specific state for the element.

Same as Element.elementState.

isExpanded

readonly

boolean

Specifies whether element is in the expanded state.

Same as Element.isExpanded.

Expanded state is stored in the element state with TemplateProperties.Expanded property.

onlySelected

readonly

boolean

Whether the element is the only selected cell on the canvas.

See

DiagramModel.selection