On click action
On every layout you can add onClick
action. onClick
property accepts array of actions each action can optionally define condition.
Example
Abort
Aborts the current action, or if the action is a part of a chain of actions the whole chain will be interrupted.
Custom action
You can execute custom JavaScript code.
Emit
Emit event to outside application.
Parameters
Type
Description
event
string
value
JsfValueOptionsType
When application is creating JSF component it must register onFormEvent
input for emit to work.
Set value
Sets value to form.
Parameters
Type
Description
path
string
If not set it sets to root.
value
noResolve
boolean
(optional)
noValueChange
boolean
(optional)
Patch value
Similar to setValue
but it patches value to form (preserving not defined existing properties).
Parameters
Type
Description
path
string
If not set it sets to root.
value
noResolve
boolean
(optional)
noValueChange
boolean
(optional)
Validate
Validate form. This will trigger a full form validation and will then display errors in the entire form. If the form is invalid this will abort the event chain!
Not supported right now. Form is already validating itself at every change.
Submit
Not supported right now.
Add item to array
Add item to array at given path.
Parameters
Type
Description
path
string
value
{ $eval: string }
mode
"set" | "patch"
Remove item from array
Remove item from array at given path.
Parameters
Type
Description
path
string
index
{ $eval: string }
Navigate to
Parameters
Type
Description
reload
boolean
path
{ $eval: string }
query
{ $eval: string }
queryParamsHandling
'merge' | 'preserve' | ''
relative
boolean
openInNewWindow
boolean
transferFormValue
{ path?: string; value?: { $eval: string; } | any; } | boolean
Show dialog
Hide dialog
Stepper
Stepper next
Stepper previous
Clipboard
Clipboard - Copy and paste to/from local storage.
Show notification
Shows a notification to the user.
Run service action
Run service action.
Property
Type
Description
force
boolean
(optional)
Force reload even if API call already in progress.
dataSourceKey
string
| '*'
Which data source to reload. If *
it will reload all.
Example buttons for triggering reload:
Last updated
Was this helpful?