on-press
Optional
Default: unset
Triggered when: Specific per component. Please see the table below.
Event parameter: Specific per component. Please see the table below.
Return value: Specific per component (based on field type). Please see the table below.
on-press
is an event that calls a JS/TS $:function
or navigation. See more details:
Note: The on-press
function will call validation (as specified by the validate
attribute) if set.
Component-specific details
Component | Triggered when | Event parameter | Return value |
---|---|---|---|
| A row/cell/item is selected. |
| Selected object |
| The user clicks on an object in the list. |
|
|
A button is selected. | Empty by default. Can be a user-defined variable or field. |
| |
| An item is selected. | Empty by default. Can be a user-defined variable or field. |
|
| A marker is selected. |
| Location object containing the latitude and longitude, e.g. |
Example:
Last updated