English
flow.remind.list.right.top.btn.render.before
About 169 wordsLess than 1 minute
2025-09-22
Description: this hook is used before rendering the top-right buttons of the to-do list, and can be used to customize the color of those buttons.
1. rightTopBtnList
Function Description
Customize the color of the top-right buttons on the to-do list.
Parameters
| Parameter | Description | Type |
|---|---|---|
| batchFlowType | To-do type | String |
| templateInfo | List business type | Object |
| rightTopBtnList | Top-right button list of the to-do list | Array |
Return Value
| Parameter | Description | Type |
|---|---|---|
| rightTopBtnList | Top-right button list of the to-do list | Array |
Parameter Code Example
rightTopBtnList.forEach((a) => {
a.style = "color:red;";
});Code Example
module.exports = function (context, pluginService, pluginParam) {
return {
apply() {
return [
{
event: "flow.remind.list.right.top.btn.render.before",
functional: function (context, options) {
let rightTopBtnList = options && options.rightTopBtnList || [];
rightTopBtnList.forEach((a) => {
a.style = "color:red;";
});
return Promise.resolve({
rightTopBtnList: rightTopBtnList
});
}
}
]
}
}
}
