card
Overview
card
is most typically a stand-alone component that displays content about a single topic.
Version compatibility
card
was introduced in version 4.21.0 of the JourneyApps Container.It received several functional updates in version 4.87.0 of the JourneyApps Runtime, most notably the addition of advanced styling and configuration capabilities.
To link cards to queries and objects, use object-repeat
.
Alternatively, use the list
UI component.
Basic Example
Standard Attributes
content
content
Optional
Type: string
(static text, a format string or the return value of a JS/TS function)
Default: unset
Shorthand supported? true
Text that is displayed in the content position of the card
.
Example: Shorthand syntax
Example: Longhand syntax
footer
footer
Optional
Type: string
(static text, a format string or the return value of a JS/TS function)
Default: unset
Shorthand supported? true
Text that is displayed in the footer position of the card
.
Example: Shorthand syntax
Example: Longhand syntax
header
header
Optional
Type: string
(static text, a format string or the return value of a JS/TS function)
Default: unset
Shorthand supported? true
Text that is displayed in the header position of the list-item
.
Example: Shorthand syntax
Example: Longhand syntax
Advanced Attributes
align-content
align-content
Version compatibility
align-content
was introduced in version 4.87.0 of the JourneyApps Runtime.
icon
icon
Version compatibility
icon
(this shorthand version) was introduced in version 4.87.0 of the JourneyApps Runtime.
A shorthand attribute. See action
> icon
icon-color
icon-color
Version compatibility
icon-color
was introduced in version 4.87.0 of the JourneyApps Runtime.
Optional
Type: string
- can be a named color or #HEX value
Default: unset
Specify the color of the icon
.
icon-position
icon-position
Version compatibility
icon-position
was introduced in version 4.87.0 of the JourneyApps Runtime.
on-press
on-press
Version compatibility
on-press
(this shorthand version) was introduced in version 4.87.0 of the JourneyApps Runtime.
A shorthand attribute. See action
> on-press
show-if
and hide-if
show-if
and hide-if
validate
validate
Version compatibility
validate
(this shorthand version) was introduced in version 4.87.0 of the JourneyApps Runtime.
A shorthand attribute. See action
> validate
Last updated