Version: 22.04
Global Actions
The globalActions
property is used to show/hide and configure global actions on the List screen. Currently, Workspaces supports one global action: CreateForm
.
note
The globalActions
property is not mandatory.
Options
CreateForm
The CreateForm
property is used to show/hide the Create Forms
button that allows Workspaces users to create new forms using Maestro forms.
CreateForms
relies on globalActions.CreateForms.options
in order to display the form list.
Example
The following example showcases how to configure the CreateForm
feature.
src/configs/custom/process.ts
import { ConfigCurrentSpace } from '@transact-open-ux/workspaces/dist/types';
export const processConfig = ({ date }: any): ConfigCurrentSpace => ({
...
globalActions: {
CreateForm: {
label: 'New Form',
options: ['Deposit Account Opening'],
},
},
...
});
export default processConfig;
Attributes
To review the list of supported attributes, see API Reference.