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 Action
  • Use a Custom Action
  1. Main Pages
  2. Custom Code

Custom Actions

Create a custom action reusable throughout the application.

PreviousCustom FunctionsNextCustom Dependencies

Last updated 2 years ago

Creating a Custom Action

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

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

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

  • Add a Tag to group your custom actions

  • Choose if your action should be Async or not

  • Choose if you passe the Build Context in the action

  • 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 Action

Example of a custom action that use a custom dependency and show a Toast on button click
Example of use of a custom action that show a Toast on button click
Example of a custom action in a running application