Goril.app Studio
  • Goril.app Studio Documentation
  • Setup
  • Quick Start
  • Main Pages
    • Architect
      • Toolbox
      • Explorer
      • Application Preview
      • Settings Panel
    • Storyboard
    • Assets
    • State
    • Custom Code
      • Custom Functions
      • Custom Actions
      • Custom Dependencies
      • Custom Widgets
    • Settings
      • General
      • Theme
      • Firebase
    • Action Flow Editor
  • Cookbook
    • My first application
      • Create the project
      • Create the Task model
      • Create the base HomePage Layout
      • Complete the HomePage Layout
      • Add Update Task Action in HomePage
      • Create the CreateTask component
      • Add Actions in CreateTast component
      • Create the EditTask component
      • Add Actions in EditTask component
Powered by GitBook
On this page
  • Creating a Custom Function
  • Use a Custom Function
  1. Main Pages
  2. Custom Code

Custom Functions

Create a custom function reusable throughout the application.

PreviousCustom CodeNextCustom Actions

Last updated 2 years ago

Creating a Custom Function

In order to create a Custom Function follow the next steps :

  • Click on the Add button and select Functions in the opened list

  • Set the Name of your function on the right properties panel

  • Add a Tag to group your custom functions

  • Choose if your function should be Async or not

  • Add any Parameters you need

  • Choose the Return Type

  • Write your code in the central editor

  • Save by clicking on the top right button Save

Use a Custom Function

Example of a custom function that add two numbers and return the result as a string
Example of use of a custom function that increment by 1 an observable on button click