Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To run simple synchronous code like fetching data from the UI, Corticon.js supports JavaScript functions calls in rulesheets. You can create custom properties and set their values with JavaScript function functions in the fixed rulesheet.

To run asynchronous code like backend calls, create a regular TypeScript event handler file that sets custom properties in the screen akEvent payload property and then calls the screen callRules() method to execute the screen rules (and the window rules).