Defining Code for a Custom Menu Item or Custom Action

Associate a custom action with a menu item, custom action item, or control, and write your own code to control its behavior.

Prerequisites
From the Screen Design Palette, add the item that you want to customize.
Task
  1. In the Screen Design page of the Hybrid App Designer, select the menu item, control, or custom action that you want to configure.
  2. In the Properties view Type field, select Custom.
  3. Edit the Custom.js file, adding custom code in the customBeforeMenuItemClick to handle the action.
    In your code, call the custom function that is autogenerated in hybridapp.js
  4. Save the Custom.js file.
    The next time you regenerate the Hybrid App package, your changes to this file are preserved.