User Tools

Site Tools


en:template:dataurl_variables

Differences

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

Link to this comparison view

en:template:dataurl_variables [2016/08/11 09:52] (current)
Nicolas Ronvel created
Line 1: Line 1:
 +====== DataUrl Variables ======
  
 +A DataUrl variable is used to stored an external file, with many informations. Usually an image. It can then be used as a [[Text Variables|Text Variable]] to set a canvas property.
 +
 +To use a **Data-Url. Variable**, use the text ''​$myVariable'',​ with the name corresponding to the field defined.
 +
 +<code javascript>​
 +"​canvasFields":​ [
 +    {"​type":"​image",​ "​src":​ "​$portray",​ "​left":​5,​ "​width":​150,​ "​top":​40 ,"​height":​300}
 +]
 +</​code>​
en/template/dataurl_variables.txt · Last modified: 2016/08/11 09:52 by Nicolas Ronvel