English
Common Parameters
About 111 wordsLess than 1 minute
2025-12-16
The common parameters of the Object Detail plugin are described below.
| Parameter | Description | Type |
|---|---|---|
| objectApiName | Object apiName | String |
| objectDataId | Object data ID | String |
| dataGetter | Other APIs. This property type does not follow the standard, so perform type checks before using it | Function |
Notes
1. Perform type checks before using dataGetter
Since dataGetter did not follow the standard in its early design, it is provided as a method. To avoid potential issues caused by later adjustments to the detail page, use it in the following way.
export default class Plugin {
apply() {
return [{
event: 'detail.render.before',
functional: this.renderBefore.bind(this)
}]
}
renderBefore(context, plugin) {
let { dataGetter } = context;
dataGetter.getDescribe();
}
}