Skip to content

Commit c99a52f

Browse files
committed
reinstate events
1 parent d9c3e4b commit c99a52f

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

shesha-reactjs/src/designer-components/subForm/settingsForm.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { FormLayout } from 'antd/lib/form/Form';
44

55
export const getSettings: SettingsFormMarkupFactory = ({ fbf }) => {
66
const commonTabId = nanoid();
7+
const eventsTabId = nanoid();
78
const appearanceTabId = nanoid();
89
const styleRouterId = nanoid();
910

@@ -66,6 +67,18 @@ export const getSettings: SettingsFormMarkupFactory = ({ fbf }) => {
6667
] })
6768
.toJson(),
6869
},
70+
{ key: 'events', title: 'Events', id: eventsTabId,
71+
components: fbf(eventsTabId)
72+
.addSettingsInput({ inputType: "codeEditor", propertyName: "onCreated", label: "On Post Data", tooltip: "Triggered after successfully creating a new sub-form object in the back-end",
73+
mode: "dialog", description: "Triggered after successfully creating a new sub-form object in the back-end",
74+
wrapInTemplate: true, templateSettings: { functionName: 'onCreated' },
75+
})
76+
.addSettingsInput({ inputType: "codeEditor", propertyName: "onUpdated", label: "On Put Data", tooltip: "Triggered after successfully updating the sub-form object in the back-end",
77+
mode: "dialog", description: "Triggered after successfully updating the sub-form object in the back-end",
78+
wrapInTemplate: true, templateSettings: { functionName: 'onUpdated' },
79+
})
80+
.toJson(),
81+
},
6982
{ key: 'appearance', title: 'Appearance', id: appearanceTabId,
7083
components: fbf(appearanceTabId)
7184
.addPropertyRouter({ id: styleRouterId, propertyName: 'propertyRouter1', componentName: 'propertyRouter', label: 'Property router1', labelAlign: 'right',

0 commit comments

Comments
 (0)