English
approval.changeApprover.render.before
About 111 wordsLess than 1 minute
2025-12-16
Description: this event is called before rendering the change approver popup
This event is used to perform extra actions before rendering the change approver popup, including but not limited to the following function: 1. Customizing whether the change opinion is required
Parameters
| Parameter | Description | Type |
|---|---|---|
| setOpinionRequired | Customize whether the change opinion is required (example) | Function |
Example
1. setOpinionRequired
Description
Customize whether the change opinion is required.
Parameters
| Parameter | Description | Type |
|---|---|---|
| opinionRequired | Whether the change opinion is required | Boolean |
Return Value
None
Parameter Code Example
None
Code Example
export default class Plugin{
apply(){
return [{
event: "approval.changeApprover.render.before",
functional: this.approvalOpinionsRenderBefore.bind(this)
}]
}
approvalOpinionsRenderBefore(api){
api.setOpinionRequired(true)
}
}