English
flow.remind.list.batch.option.render.before
About 159 wordsLess than 1 minute
2025-09-22
Description: this hook is used before rendering batch operation buttons, and can be used to customize the text of batch operation buttons on the to-do list.
1. btnList
Function Description
Customize batch operation text in the to-do list.
Parameters
| Parameter | Description | Type |
|---|---|---|
| batchFlowType | Batch to-do type | String |
| btnList | Button list | Array |
| relativeEntityId | Related object apiName | String |
Return Value
| Parameter | Description | Type |
|---|---|---|
| popBtnList | Popup item list | Array |
Parameter Code Example
btnList.forEach((a, inde) => {
a.txt = "Plugin custom text " + inde;
});Code Example
module.exports = function (context, pluginService, pluginParam) {
return {
apply() {
return [
{
event: "flow.remind.list.batch.option.render.before",
functional: function (context, options) {
let btnList = options && options.btnList || [];
btnList.forEach((a, inde) => {
if (a && a.txt) {
a.txt = "Plugin custom text " + inde;
}
});
return Promise.resolve({
popBtnList: btnList
});
}
}
]
}
}
}
