User Tools

Site Tools


en:template:color_picker

Differences

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

Link to this comparison view

en:template:color_picker [2016/08/11 10:06]
Nicolas Ronvel created
en:template:color_picker [2017/07/21 11:22] (current)
Nicolas Ronvel [Using the variable]
Line 33: Line 33:
 ===== Using the variable ===== ===== Using the variable =====
  
-With each **Color Picker`** field created, a variable is created. To use it in the ''​canvasFields'',​ have the value of a property set to the string ''​$myfieldname''​. It will be replaced by the value set in the field.+With each **Color Picker** field created, a variable is created. To use it in the ''​canvasFields'',​ have the value of a property set to the string ''​$myfieldname''​. It will be replaced by the value set in the field.
  
 Note that this value will not create a color, because of the missing ''#''​ character. But you can set an [[Advanced_String_Variables|Advanced String Variable]] in the form of ''#​$myfieldname$''​ to set a valid color. The properties ''​fill'',​ ''​backgroundColor'',​ ''​stroke''​ are perfect match for this kind of variable. Note that this value will not create a color, because of the missing ''#''​ character. But you can set an [[Advanced_String_Variables|Advanced String Variable]] in the form of ''#​$myfieldname$''​ to set a valid color. The properties ''​fill'',​ ''​backgroundColor'',​ ''​stroke''​ are perfect match for this kind of variable.
en/template/color_picker.txt · Last modified: 2017/07/21 11:22 by Nicolas Ronvel