on-press
Last updated
Last updated
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.
A row/cell/item is selected.
$selection
Selected object
The user clicks on an object in the list.
$object
, searchValue
Selected object
A string containing the entered search text.
A button is selected.
Empty by default. Can be a user-defined variable or field.
undefined
, or the user-defined variable or field.
An item is selected.
Empty by default. Can be a user-defined variable or field.
undefined
, or the user-defined variable or field.
A marker is selected.
$value
Location object containing the latitude and longitude, e.g. {latitude: 39.7553694, longitude: -105.0195773}
action
(, , )
(
edit-typeahead
)
item
(, navigation
)
/ (capture-coordinates
, display-coordinates
)