-
Notifications
You must be signed in to change notification settings - Fork 17
createAction
ingmar-stipriaan edited this page Sep 4, 2024
·
1 revision
To create a new action via the onDrop/addChild modal, you can add the createAction key to the ACTION_JS option.
This will create a new action with an update step and permissions inherited from the page.
When there are multiple property options on the same component, these will be added to the action as input variables and the assigned in the update step.
component(
'Form',
{
ref: { id: '#checkboxQuestionForm' },
options: {
...formOptions,
actionId: option('ACTION_JS', {
label: 'Action',
value: '',
configuration: {
createAction: {
name: 'Name of the action',
template: 'update',
permissions: 'inherit',
},
},
}),
},
}, []);- Getting started
- Page Builder Components
- Action Functions
- [deprecated] CustomFunctions