English
flow.remind.list.card.render.before
About 130 wordsLess than 1 minute
2026-04-17
flow.remind.list.card.render.before
Description: This hook is used to rewrite buttons, custom components, and more-action buttons for a single to-do card.
1. customComponten
Feature Description
- Rewrites buttons, custom components, and more-action buttons for a single to-do card.
Parameters
| Parameter | Description | Type |
|---|---|---|
| btnList | Popup button list | Array |
| moreList | More-action list | Array |
| updateItem | Card rendering data | Object |
Return Value
| Parameter | Description | Type |
|---|---|---|
| customComponten | Custom component configuration | Object |
| btnList | Popup button list | Array |
| moreList | More-action list | Array |
Parameter Code Example
let btnList = options && options.btnList;Code Example
module.exports = function (context, pluginService, pluginParam) {
return {
apply() {
return [
{
event: "flow.remind.list.card.render.before",
functional: async function (context, options) {
let btnList = options && options.btnList;
let moreList = options && options.moreList;
let updateItem = options && options.updateItem;
return Promise.resolve({
customComponten: {},
btnList: btnList,
moreList: moreList
});
}
}
];
}
};
};