📄️ Basic Scripting
Scripting is how you add behaviour to a configured view that the designer settings alone cannot express: calling an API when a button is clicked, hiding a field unless another one has a particular value, or calculating a total as the user types. All scripting is done in JavaScript, and a standard set of objects is already in scope so you never have to import anything.
📄️ Proxying Input Variables
Component settings such as Visible and Interaction Mode can be configured with a switch or calculated with a JavaScript expression. When Shesha runs one of those expressions, it does not hand your code the raw objects. It hands you proxies that track which values you actually read, so a setting is only recalculated when something it depends on changes. This page explains what that means for the scripts you write.
📄️ SetFormData
The bare setFormData script variable described on this page is no longer injected into the script scope. If you write a new script that calls setFormData(...) directly (not as form.setFormData(...)), it will fail because setFormData is not defined.
🗃️ Shesha Objects
4 items