User Tools

Site Tools


en:template:text_variables

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:template:text_variables [2016/08/11 09:53] (current)
Nicolas Ronvel created
Line 1: Line 1:
 +====== Text Variables ======
  
 +A text variable is the simplest form of variable. It can be used with many properties of the canvas, to set some options or to display text.
 +
 +To use a **Text Variable**, use the text ''​$myVariable'',​ with the name corresponding to the field defined.
 +
 +<code javascript>​
 +"​canvasFields":​ [
 +    {"​type":"​text","​text":"​$characterType",​ "​fontSize":​ 22}
 +]
 +</​code>​
en/template/text_variables.txt · Last modified: 2016/08/11 09:53 by Nicolas Ronvel