English
flow.remind.list.batch.btn.render.before
About 170 wordsLess than 1 minute
2025-09-22
Description: this hook is used before rendering the bottom action buttons of the approval to-do list, and can be used to customize the text of the bottom button list.
1. bottomBtnList
Function Description
Customize the text of the bottom button list on the to-do list.
Parameters
| Parameter | Description | Type |
|---|---|---|
| batchFlowType | Batch to-do type | String |
| templateInfo | Business type | Object |
| BottomBtnList | Button list | Array |
Return Value
| Parameter | Description | Type |
|---|---|---|
| bottomBtnList | Bottom button list | Array |
Parameter Code Example
bottomBtnList.forEach((a, inde) => {
a.text = "Custom bottom button text " + inde;
});Code Example
module.exports = function (context, pluginService, pluginParam) {
return {
apply() {
return [
{
event: "flow.remind.list.batch.btn.render.before",
functional: function (context, options) {
let bottomBtnList = options && options.bottomBtnList || [];
bottomBtnList.forEach((a, inde) => {
if (a && a.text) {
a.text = "Custom bottom button text " + inde;
}
});
return Promise.resolve({
bottomBtnList: bottomBtnList
});
}
}
]
}
}
}
