asset
Overview
The asset
element adds visual content such as images or icons to a list-item
.
Standard Attributes
icon
icon
Optional
Type: string
Default: unset
Shorthand supported? true
The icon to display on the left-hand side of the list-item. The icon can be a one of JourneyApps' supported icons. To display an image or photo, use the src=""
attribute.
Example: Shorthand syntax
Example: Longhand syntax
Advanced Attributes
color
color
Optional
Type: string
- can be a named color or #HEX value
Default: unset
Shorthand supported? false
The color of the icon.
src
src
Optional
Type: string
Default: unset
Shorthand supported? true
The photo or image to display on the left-hand side of the list-item. The photo or image can be a png
or SVG
file, and can referenced from a database object or your app's assets. To display an icon, use the icon=""
attribute.
Example: Shorthand syntax
Example: Longhand syntax
Last updated