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
The CreateForms
option is used to show/hide the Create Forms
button that allows Workspaces users to create new forms using Maestro forms.
note
CreateForms
relies on globalActions.CreateForms.options
in order to display the form list. value
is matched against formCode
in the form
API result. If none match, they will not show in the dropdown. If this is the case for all of the config options, no dropdown will show at all.
The value
key is a string and only takes one value.
Example
The following example showcases how to configure the CreateForm
feature.
import { ConfigCurrentSpace } from '@transact-open-ux/workspaces/dist/types';
export const processConfig = ({ date }: any): ConfigCurrentSpace => ({
...
globalActions: {
CreateForm: {
label: 'New Form',
options: [
{ label: 'DAO - Fraud Review', value: 'daofraudreview' },
{ label: 'DAO2 - Helpdesk', value: 'daohelpdesk' }
]
}
},
...
});
export default processConfig;
Attributes
To review the list of supported attributes, see API Reference.