Skip to main content

Interface: StandardEntityProps

Defined in: templates/standardElement.tsx:57

Props for StandardEntity component.

See

StandardEntity

Extends

Properties

PropertyModifierTypeDescriptionInherited from

element

readonly

Element

Target element to render.

TemplateProps.element

elementId

readonly

string

Target element ID (Element.id).

TemplateProps.elementId

elementState

readonly

TemplateState

Template-specific state for the element.

Same as Element.elementState.

TemplateProps.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.

TemplateProps.isExpanded

onlySelected

readonly

boolean

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

See

DiagramModel.selection

TemplateProps.onlySelected

showActions?

public

boolean

When set to true, allows to edit or delete the entity using corresponding buttons in the expanded state.

Default

false

Deprecated

Entities can be edited or deleted via inline action decorators when VisualAuthoringProps.inlineEntityActions is enabled.