action
Overview
A list-item
supports the action
attribute, making it clickable.
Standard Attributes
on-press
on-press
Required
Default: unset
Shorthand supported? true
Example: Shorthand syntax
Example: Longhand syntax
The on-press
attribute has no effect if the bind
attribute is set.
Advanced Attributes
icon
icon
Optional
Type: string
Default: unset
Shorthand supported? true
The icon to display on the right-hand side of the list-item. The icon can be a one of JourneyApps' supported icons.
Example: Shorthand syntax
Example: Longhand syntax
validate
validate
Optional
Type: boolean
Default: false
Shorthand supported? false
Whether to run field validation before calling the associated on-press
(see above). Can be either true
, false
, or the result of a function, e.g. $:shouldBeValidated()
.
Last updated