<list> <list-item> <actionicon="my-icon-name"on-press="$:doSomething()" /><!-- or --><!-- With dynamic list-items you can pass the selected item as a parameter via $selection --> <actionicon="my-icon-name"on-press="$:doSomething($selection)" /> </list-item></list>
The on-press attribute has no effect if the bind attribute is set.
Advanced Attributes
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.
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().