# What is a custom plugin

In the PaaS platform with numerous customers, when encountering a business scenario that cannot be realized only through configuration, in addition to developing custom components, it also provides another low-cost and more efficient low code development method plug-in.

# Feature overview

Users can write JS code to implement their own business logic.

plugin-start-code

Through the "Custom Plug-ins" under the "Custom Development Platform" of background management, you can manage all custom plug-ins;

Through the object's "Layout Designer", you can insert plugins into the layout system and change the original logic.

# How plugins work

Plug-ins can control system functions at the time specified by the system. For example, when the form obtains data, parses data, submits data, and responds to clicks, it can be controlled by the plug-in to execute the business logic of the customer.

plugin-start-code

This is the most common life cycle of components, and each cycle we can modify the data through plug-ins, thereby affecting the corresponding business logic. Of course, in addition to the above life cycles, different components will also have component-specific life cycles, such as form calculation, data submission, etc. The specific exposed hooks are subject to the corresponding component documentation.

# Plugins and custom components

Plug-ins are the appropriate control of the system within the framework of system constraints. Custom components are encapsulations of business functions that exist independently and do not affect the system itself. Here's a comparison of the two:

dimension Custom plugins Custom components
Functional boundaries Control forms, lists, and other systems and are subject to system constraints Encapsulation of independently existing business functions with a higher degree of freedom
Development method Pure JavaScript scripting Vue framework
Applicable scenarios Forms, lists Details, UI buttons, custom pages
vscode plugin Not supported (scheduled) In the tank
Full object In the tank In the tank
FxUI In the tank In the tank

Of course, the PaaS platform provides the ability for plugins and custom components to work together, making it easier to organize and reuse code for more complex interactions.

lastUpdate: 10/24/2022, 3:40:37 PM