Version: 20.05 (EOL)
Global Actions
The optional globalActions
config is used to show/hide and configure global actions on the List screen. Currently, Workspaces supports one global action: CreateForm
.
Options
CreateForm
The CreateForm
option is used to show/hide the New Form button that allows Workspaces users to create new forms using Maestro forms. The CreateForm
option uses the items in globalActions.CreateForm.options
to populate the list of forms offered.
Attributes
For a list of supported attributes, see Reference > CurrentSpaceGlobalActions.
Example
The following example shows how to configure the CreateForm
option in the globalActions
config.
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;