English
flow.edit.form.render.befor
About 110 wordsLess than 1 minute
2026-04-17
flow.edit.form.render.befor
Description: This hook is used to mount plugin components and plugin APIs before the approval form page is rendered.
1. customComponten
Feature Description
- Mounts plugin components and plugin APIs before the approval form page is rendered.
Parameters
| Parameter | Description | Type |
|---|---|---|
| pageData | Page pass-through data | Object |
| apiContext | apiContext | Object |
Return Value
| Parameter | Description | Type |
|---|---|---|
| customComponten | Custom component configuration | Object |
| pluginHookApi | Plugin extension API | Object |
Parameter Code Example
let pageData = options && options.pageData;Code Example
module.exports = function (context, pluginService, pluginParam) {
return {
apply() {
return [
{
event: "flow.edit.form.render.befor",
functional: async function (context, options) {
let pageData = options && options.pageData;
let apiContext = options && options.apiContext;
return Promise.resolve({
customComponten: {},
pluginHookApi: {}
});
}
}
];
}
};
};