Templates

Using Placeholders in Templates

Jedison allows you to define templates with dynamic titles and descriptions that use placeholders. These placeholders are replaced at runtime with relevant values.

Available Placeholders

  • value — The current value (from getValue()); always available
  • settings — Configuration options (from jedison.options.settings); always available
  • i0 — The zero-based index of the array item; available only if the editor is an array item editor
  • i1 — The one-based index of the array item; available only if the editor is an array item editor
  • parent — Parent instance template data; available when parent exists

Parent Template Access

When working with nested structures, you can access parent instance data using the parent placeholder. This is particularly useful for creating hierarchical titles and references.

Common Parent Access Patterns

  • parent.value — Access the parent's current value
  • parent.i1 — Access the parent's array index (1-based)
  • parent.parent.value — Access grandparent's value (for deeply nested structures)