Interface and Operations / Script Lib
All scripts written by users or installed from the Script Market can be viewed, edited, and managed in the Script Lib.
View Mode
By default, when a script is opened, it enters View Mode where the code is read-only and cannot be modified, preventing accidental changes.
Edit Mode
When you need to modify the code, click the Edit button to enter Edit Mode. In this mode, other logged-in users cannot enter Edit Mode, preventing multiple people from overwriting each other's edits.
The script being edited is a draft and does not affect the currently effective code. After editing, click the Publish button to publish it; only then will the new script take effect.
After finishing script editing, it is recommended to exit Edit Mode as soon as possible
Execute Function
After selecting a function, click the Execute button to run the selected function. The output from the print(...) function and the function's return value will be displayed in the output box at the bottom.
Script Lib Hierarchy
The Script Lib is divided into 3 levels:
- Script Set
- Script
@DFF.API(...)functions in a script
Among these, Script Sets and Scripts are created manually by users, while @DFF.API(...) functions in a script are automatically generated from the code written by users.
According to the hierarchy, the IDs of scripts and functions each contain the ID of their parent level, as follows:
| ID | |
|---|---|
| Script Set | dev |
| Script | dev__example |
| Function ID | dev__example.hello_world |
Reference Documentation
For details on specific script development, refer to the documentation Script Development