English
Initialization Parameters
About 129 wordsLess than 1 minute
2025-09-22
This page explains the initialization parameters available in the default exported function of the Object Detail Page JS plugin.
module.exports = function (context, pluginService, pluginParam) {
return {
apply() {
return []
}
}
}When customizing a detail page JS plugin, three initialization parameters must be passed into the default exported function in order: context, pluginService, and pluginParam.
| Parameter | Description | Type |
|---|---|---|
| context | Detail page context, which encapsulates some basic detail-page APIs, such as getting object data. It can be used in the plugin or in custom components implemented by the plugin. | Object |
| pluginService | Plugin management service that provides some basic APIs | Object |
| pluginParam | Basic plugin information or plugin description, required when creating custom components | Object |
This document introduces the context parameter in detail.
