Components and functions

They make your life easier!

What are they?

Components / functions are bits of code that can be called on pages or webhooks. They are useful to trim down the number of lines of code on recurrent features, tasks or automations.

Creating Components / Functions

Access the Developer Area and click on Components / Functions, then +Create new function. Name your new function and press Create.

After the function is created, you'll be able to customize back-end and front-end on their designated consoles. You'll be able to call on this function on customized pages and even assign specific webhooks to activate it.

Calling a Function on a customized page

Use the following format to call a function on a customized page:


The arguments to be used on callFunction are:

  • $functionname: The API/trigger name of a function.
  • $functionarguments: A JSON comprised of arguments to be used inside the function, for example:
  • $render => ID of the HTML element that will receive the function's return (can be null).
  • $loading => If there's an HTML ID for rendering, this argument should be set as true or false, depending on whether you opt for the visualization of a standard loading or not (if there's no HTML ID, this can be null).
  • $callback => Function with the return of the executed component/function.

What’s Next