All View Components → viewpicture
Select a view component to see details on how it works:
viewpicture
A component that displays an existing photo that the user took previously.
Example
Code in View XML:
Appearance on a mobile device:
Configuration:
Option | Required? | Details |
---|---|---|
bind
|
required |
Variable/attribute containing the photo that should be displayed. Must be a variable or attribute of type attachment with media="image/jpeg" (see Attribute & Variable Types for more details) |
label
|
optional | Text to display above the component. It can be a Format String to make the text dynamic. |
show-if
|
optional |
Controls whether the component is hidden or shown. The argument specified to show-if can either be a literal boolean value (true or false ), or it can specify a variable, parameter or attribute that can be a string, number, object, etc. that evaluates to false or evaluates to true (see the section Show/Hide Components Dynamically for full details).
|
hide-if
|
optional |
The opposite of show-if (see above).
|