Check out how to use and connect external JS libraries to UI Bakery
In UI Bakery, you can use either your own or any public JS library. Also, there are pre-built libraries in UI Bakery as well: moment.js and lodash, that can be used straight away and don't need to be configured additionally.
Using moment.js
To use moment.js in your app, no need to configure it additionally, as it comes pre-built. Just follow these simple steps:
1.
In the Builder mode, Add a new action with Code type and paste the code :
1
return{{moment().format("dddd, MMMM Do YYYY, h:mm:ss a")}};
Copied!
2. Run Action, then check the Result tab - you will see the actual date as an outcome.
Using lodash
Here's an example on how to use lodash library for the case when you need to filter a table by several keys of the selected row of another table. Since it comes pre-built, no need for additional setup.
Add an action with Code type and paste the sample code:
Let’s review an external JS library connection and usage on canvas-confetti library example. The case is that upon successful form submission the user gets a confetti blast