jingrow/hooks.md
2025-04-12 17:24:13 +08:00

897 B

List of Hooks

Application Name and Details

  1. app_name - slugified name e.g. "jingrow"
  2. app_title - full title name e.g. "Jingrow"
  3. app_publisher
  4. app_description
  5. app_version

Install

  1. before_install - method
  2. after_install - method

Javascript / CSS Builds

  1. app_include_js - include in "app"

  2. app_include_css - assets/jingrow/css/splash.css

  3. web_include_js - assets/js/jingrow-web.min.js

  4. web_include_css - assets/css/jingrow-web.css

Desktop

  1. get_desktop_icons - method to get list of desktop icons

Notifications

  1. notification_config - method to get notification configuration

Permissions

  1. permission_query_conditions:[pagetype] - method to return additional query conditions at time of report / list etc.
  2. has_permission:[pagetype] - method to call permissions to check at individual level