The new custom code block is super cool. Thanks for that. I can’t figure out how to do the following though:
I want to load an external script and use it. As an example I have the following attached to the on page enter event. The script (moment js) appears to load, but when I try to call a function it says moment is not defined.
Btw, the requireModule won’t accept brackets in the nearest releases since the methods can require only one module so using an array doesn’t make any sense.
I just released a new UI-SDK that temporary accepts both variants (with and without brackets), here is the correct example:
We’re about to add an article to our blog post describing how the custom block component works and describing examples of its use. As soon as this article is available you will be notified by email.
I wanted to post directly from some custom code to the Backendless database, so I used this approach but with the script for Backendless rather than an external script, and it worked great.