Skip to main content
Template variables allow you to:
  • Display dynamic data within Velt components.
  • Use the dynamic data to apply conditional templates or CSS classes.
There are two main ways to use them:
  1. Using built-in Velt data
  2. Injecting your own application data

1. Using Built-in Velt Data

Velt provides access to various data objects that you can display in your components using the VeltData component.

Basic Usage

Available Data Objects

Global Variables

These are available across all Velt components:

Context-Specific Variables

These are only available within relevant components they are used in:

context Variable Resolution

The context variable resolves differently depending on the component it is used in:
In components such as Inline Comments Section, field="context.someProperty" resolves from the component’s local UI state (parentLocalUIState.context), not from the annotation’s context. To access context stored on the annotation, use field="annotation.context.someProperty" instead.

Example: Building a Custom User Card

2. Injecting Your Own Data

  • You can inject custom data from your application to use within Velt components.
  • This data is available in all Velt Wireframes, Velt If and Velt Data components.

Setting Custom Data

Using Custom Data in Components