-
Notifications
You must be signed in to change notification settings - Fork 18
Templates Multiline text input
Nicolas Ronvel edited this page Jun 10, 2016
·
3 revisions
Multiline Text Input fields are text areas in which a user can write a big amount of text, with line breaks if desired. This text can then be passed to the card to be displayed.
"fields": [
{ "name": "myfieldname", "label":"My field", "default": "Default value", "type": "multiline", "lines": 5 }
]
The lines property set the number of rows the textarea is displayed with. This value is optional and set by default to 4.
With each Multiline Text input 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.
A Textbox object is better to host the result of such a variable.
Feel free to post your questions via Issues if something is unclear or missing in the wiki. Better documentation = Better templates !