Browse Source

Add new custom paramters to html5 manual.

Kharkunov Eugene 1 year ago
parent
commit
023ed26ec8
1 changed files with 8 additions and 2 deletions
  1. 8 2
      docs/en/manuals/html5.md

+ 8 - 2
docs/en/manuals/html5.md

@@ -185,7 +185,11 @@ DEFOLD_ENGINE_ARGUMENTS
 
 ## Extra parameters
 
-If you create your custom template, you can redefine set of parameters for the engine loader. To achieve that you need to add `<script>` section and redefine values inside `CUSTOM_PARAMETERS`. For example:
+If you create your custom template, you can redefine set of parameters for the engine loader. To achieve that you need to add `<script>` section and redefine values inside `CUSTOM_PARAMETERS`. 
+::: important
+Your custom `<script>` should be placed after `<script>` section with reference to dmloader.js but before call `EngineLoader.load` function.
+:::
+For example:
 
 ```
     <script id='custom_setup' type='text/javascript'>
@@ -222,7 +226,9 @@ If you create your custom template, you can redefine set of parameters for the e
 
 'can_not_download_file_callback':
     Function that is called if you can't download file after 'retry_count' attempts.
-*/
+
+'resize_window_callback':
+    Function that is called when resize/orientationchanges/focus events happened
 ```
 
 ## File operations in HTML5