Skip to main content

Home > @jsplumbtoolkit/browser-ui > ViewNodeOrPortOptions > templateId

ViewNodeOrPortOptions.templateId property

ID of the template to use for a vertex of this type. This is only for 'vanilla' Toolkit: if you are using an integration such as React/Angular/Vue, you will not need to provide this. This parameter is distinct from template in that when you provide templateId you are expecting the Toolkit to resolve the template for you, either from a templates block in a render call, or by looking for a script element in the DOM with the appropriate ID. If you provide this and also template, template will take precedence.

Signature:

templateId?: string;