English
toggleDetailButton
About 90 wordsLess than 1 minute
2025-12-15
bizApi.toggleDetailButton(detailButton)
Shows or hides detail-object buttons
Parameters
| Parameter | Description | Type | Required |
|---|---|---|---|
| detailButton | State changes for detail-object buttons | Object | Yes |
detailButton
| Parameter | Description | Type | Required |
|---|---|---|---|
| Detail object apiName | Object | Yes |
detailButton.
| Parameter | Description | Type | Required |
|---|---|---|---|
| record_type | Detail-object business type | String | Yes |
| buttons | Detail-object buttons | Array | Yes |
Return Value
None
Basic Example
export default class Plugin {
apply() {
return [{
event: 'form.render.after',
functional: this.formRendereAfter.bind(this)
}]
}
formRendereAfter(context, plugin) {
context.bizApi.toggleDetailButton({
object_aekd3__c: [{
record_type: 'default__c',
buttons: [{
action: 'delRowHandle',
rowIds: ['1711334884102226', '1711334884102227'],
hidden: true
}]
}]
})
}
}