JavaScript Library

   MaestroThe UI design product.  |   Form Builder |  All versions This feature is related to all versions.

Maestro comes with the JavaScript Library component allowing you to include pre-existing JavaScript libraries in your Maestro form, either from an external URL, or a text file.

Usage

  1. Open the Palette pane in the Maestro Editor.
  2. Locate the JavaScript Library component within the Tools folder.
  3. Drag the component into the View pane or the Wireframe.
  4. Configure the component's properties via the Properties pane.

Properties

The following properties are available to the JavaScript Library component:

Code
Js
jsLibrary

Upload the JS resource

Source

Select a source of JavaScript library, which can be one of the following:

  • Resource
  • External URL

If you've selected Resource as the source, you have the following options:

  • Click Upload File to choose a JavaScript library to upload.
  • Click Create New Resource to create a new resource. You will see a warning message if a resource with the same name already exists.
  • Select the Wrap in Namespace checkbox to wrap it in namespace. For example, if the JavaScript library contains a method named doSomething() and you enter a namespace of MyNamespace, then the method will be available to other code within the form, such as business rules, as MyNamespace.doSomething().
  • Select the Load JS Asynchronously checkbox to load a JavaScript in asynchronously.

If you've selected External URL as the source, you have the following option:

  • Type a URL to a JavaScript resource in the URL field.
Note

You can't add a rule to this component. For more information, see Maestro Business Rules.

Next, learn about the Countdown Timer component.