English
flow.remind.list.card.btn.render.before
About 129 wordsLess than 1 minute
2025-09-22
This hook is used before the bottom buttons of a business flow to-do card are rendered. You can customize button operations.
Note: This hook is used before the bottom buttons of a business flow to-do card are rendered. You can customize button operations.
Parameters
| Parameter | Description | Type |
|---|---|---|
| updateItem | The current to-do list item to update, including task data and buttons | Object |
Return Value
| Parameter | Description | Type |
|---|---|---|
| updateItem | The current to-do list item to update, including task data and buttons | Array |
Code Example
module.exports = function (context, pluginService, pluginParam) {
return {
apply() {
let self = this;
return [{
event: "flow.remind.list.card.btn.render.before",
functional: async function (context, options) {
let taskButtons= options && options.updateItem && options.updateItem.buttonList;
if (taskButtons&& taskButtons.length > 0) {
bottomBtn[0].text = 'Renamed Button'
}
return Promise.resolve({
updateItem: options.updateItem,
});
}
}]
}
}
}