Script

The Script Page Component in Joget DX 8 enables App Designers to customize the behavior and functionality of a page using custom JavaScript. This component is essential for implementing complex logic, enhancing interactivity, and integrating third-party libraries or APIs.

Configure Script

To configure the Script component properties, in UI Builder, drag and drop the Rich Text UI element into any category to enable the button Edit Page Components, click on it, and Drag and drop the Script page component into the page for editing.

When adding the Script component, you will see the following fields available for configuration:

  • ID: Assign an optional custom ID to the Script component. This ID must be unique across all page components, as the first matching name will be called upon.
  • JavaScript: Enter the JavaScript code to be processed by this Script component. You can write valid JavaScript code, including functions, event listeners, or integrations with external libraries.

AJAX & events

Events are fundamental to creating interactive and dynamic web pages, and AJAX enables the development of more responsive web applications without reloading the entire page. In the context of the Accordion component, AJAX & Events can be configured to enhance interactivity and user experience.

Created by Julieth Last modified by Aadrian on Dec 13, 2024