Skip to content

@graphty/graphty-element / schema / labelTemplateLine

Function: labelTemplateLine() ​

labelTemplateLine(row): string

Defined in: graphty-element/src/session/styles/labelTemplate.ts:249

Write a row as one template line; labelTemplateRow reads it back as the same row.

Parameters ​

row ​

LabelTemplateRow

The row.

Returns ​

string

The line.

Throws ​

A GraphtyError with code E_BAD_LAYER when the words hold { or } (a template would read them as a placeholder) or the path is empty or holds {, } or |.