English
flowTodo.approval.changeApprover.render.before
About 131 wordsLess than 1 minute
2026-06-04
Description: This event is triggered before the batch change-approver popup is rendered on the approval to-do list/card page.
This event is used on the approval to-do list/card page, and supports customizing[batch change-approver popup], including but not limited to the following capabilities: 1. Customize change-approverwhether comments are required
Parameters
| Parameter | Description | Type |
|---|---|---|
| setOpinionRequired | Set whether change-approver comments are required(Example) | Function |
Examples
1. setOpinionRequired
Feature Description
Customize whether comments are required when changing approvers in batch.
Parameters
| Parameter | Description | Type |
|---|---|---|
| required | Whether required. true means required and false means not required | Boolean |
Return Value
None
Code Example
export default class Plugin {
apply() {
return [
{
event: "flowTodo.approval.changeApprover.render.before",
functional: this.flowTodoApprovalChangeApproverRenderBefore.bind(this)
}
]
}
flowTodoApprovalChangeApproverRenderBefore(api) {
//Set comments as required
api.setOpinionRequired(true)
}
}