Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

hooks.md 992 B

il y a 11 ans
il y a 11 ans
il y a 11 ans
1234567891011121314151617181920212223242526272829303132333435363738
  1. ### List of Hooks
  2. #### Application Name and Details
  3. 1. `app_name` - slugified name e.g. "frappe"
  4. 1. `app_title` - full title name e.g. "Frappe"
  5. 1. `app_publisher`
  6. 1. `app_description`
  7. 1. `app_version`
  8. 1. `app_icon` - font-awesome icon or image url
  9. 1. `app_color` - hex colour background of the app icon
  10. #### Install
  11. 1. `before_install` - method
  12. 1. `after_install` - method
  13. #### Javascript / CSS Builds
  14. 1. `app_include_js` - include in "app"
  15. 1. `app_include_css` - assets/frappe/css/splash.css
  16. 1. `web_include_js` - assets/js/frappe-web.min.js
  17. 1. `web_include_css` - assets/css/frappe-web.css
  18. #### Desktop
  19. 1. `get_desktop_icons` - method to get list of desktop icons
  20. #### Notifications
  21. 1. `notification_config` - method to get notification configuration
  22. #### Permissions
  23. 1. `permission_query_conditions:[doctype]` - method to return additional query conditions at time of report / list etc.
  24. 1. `has_permission:[doctype]` - method to call permissions to check at individual level