-
Notifications
You must be signed in to change notification settings - Fork 18
Templates Image input
Nicolas Ronvel edited this page Jun 5, 2016
·
2 revisions
Image fields allow the user to import an image from his computer to the card. An Open file window is opened, and the user can select his image file. The image is then stored inside the page to be displayed on the card.
"fields": [
{ "name": "portray", "label": "Portray", "type": "image"},
]
To set a field to the Image type, set the type
property to image
. No default value is required.
An image field stores the image as a Data-Url. Inside the canvas, when a property requires an url to an image, you can then instead set it to the variable $portray
.
Feel free to post your questions via Issues if something is unclear or missing in the wiki. Better documentation = Better templates !