English
flow.bpm.detailcard.item.bottombtn.render.before
About 146 wordsLess than 1 minute
2025-11-24
This hook is used before the bottom buttons of a business flow task card on the object detail page are rendered. You can customize button operations.
Note: This hook is used before the bottom buttons of a business flow task card on the object detail page are rendered. You can customize button operations.
Parameters
| Parameter | Description | Type |
|---|---|---|
| taskButtons | Task buttons | Array |
| bpmTaskDetail | Task detail information | Object |
| context | Plugin API | Object |
Parameter Code Example
context: {
custonViewDetailButton(text,isShow); // text [View Detail button text], isShow [whether to show the View Detail button]
}Return Value
| Parameter | Description | Type |
|---|---|---|
| taskButtons | Task 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: null,
});
}
}]
}
}
}