English
Introduction
About 275 wordsLess than 1 minute
2025-12-16
Object list page JS plugins allow developers to customize JS logic on object list pages, enabling more complex business logic to solve requirements that are difficult to address with the standard product.
The V2 plugin allows developers to implement custom requirements by listening to various events on the list page and intercepting or processing them.
- The V2 plugin is still evolving and will replace the V1 plugin in the future.
Introduction to the Plugin Entry File
Plugin Initialization Parameters
| Parameter | Description | Type |
|---|---|---|
| context | List page context. It encapsulates some basic list page APIs, such as retrieving object data. Used in plugins or custom components implemented by plugins. See: context | Object |
| pluginService | Plugin management service, which provides some basic APIs | Object |
| pluginParam | Plugin basic information or plugin description. Required when creating custom components | Object |
Event Listening
apply: returns the names of the events to listen to (events) and their corresponding handler functions.
event: event name. Different events are used to handle different customization requirementsfunctional: handler function corresponding to the event- Parameter 1:
pluginExecResult: an event may be listened to and processed by multiple plugins. This parameter is the execution result of previous plugins, and is very important in some scenarios. - Parameter 2:
options: parameters passed by the event emitter, usually including some common base parameters and event-specific parameters. - Return value: usually returns results required by the specific event to implement custom effects
- Parameter 1:
Event options Properties
| Property | Description | Type |
|---|---|---|
| objectApiName | apiName of the current list object | String |
| dataGetter | Data getter | Object |
| bizApi | Encapsulation of business APIs specific to the list page | Object |
| ... | Other event-specific properties | * |
