@resconet/jsbridge 17.0.0 → 17.1.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/README.md CHANGED
@@ -1,49 +1,71 @@
1
- # JSBridge Source
1
+ # JSBridge
2
2
 
3
- The repository is used to publish **public** npm package to ... https://registry.npmjs.org/
3
+ JSBridge - Javascript API for Resco Mobile CRM
4
4
 
5
- The homepage of package : https://www.npmjs.com/package/@resconet/jsbridge
5
+ Getting started with working and debugging of an offline HTML solution.
6
+ https://www.resco.net/debugging-offline-html-solution/
6
7
 
7
- The package can be installed using following command **npm i @resconet/jsbridge**@[version of package]
8
+ ## Introduction
8
9
 
9
- The directory contains:
10
- * javascript **.js** and typescript **.d.ts** source file
11
- * readme file **README.md**
10
+ Resco Mobile CRM application functionality can be extended using HTML + Javascript code.
11
+ Your html file containing custom code can be executed both online and offline.
12
+ Offline html files are part of Woodford customization project.
12
13
 
13
- # Install package in project
14
+ Watch webinars for intro to OfflineHTML in Resco MobileCRM.
15
+ <br />[Webinar Offline HTML in Resco Mobile CRM - Part 1/2 (Intro)](https://www.youtube.com/watch?v=cplZLC_mAc0&list=PLPMCnAPD5b56XNEiGTcy5VBxdP8rcB86b&index=12)
16
+ [Webinar Offline HTML in Resco Mobile CRM - Part 2/2 (Data Access)](https://www.youtube.com/watch?v=R7GpdC_y17Y&t=1s)
17
+
18
+ Release contains the debugging/development build(s) of the Resco Mobile CRM application.
19
+ Per platform application packages are available.
20
+
21
+ ## IFrame
22
+
23
+ You can put a web browser, known as IFrame, in various components in the app.
24
+ IFrames can be used within EntityForm, EntityList or within HomeForm.
25
+ IFrame points to your custom html code file.
26
+
27
+ ## Documentation
28
+
29
+ Description of the methods and objects defined in Resco JavaScript Bridge.
30
+ [Latest Reference](https://www.resco.net/javascript-bridge-reference/)
31
+ [Guide](http://www.resco.net/mobilecrm/support/jsbridge.aspx)
32
+
33
+ ## Installing the package
14
34
 
15
35
  In your project directory use **npm init** to set up a new or existing npm package. If you want to create default package json file then use --yes parameter. For more information please visit https://docs.npmjs.com/cli/init
16
36
 
17
- * install package **npm i @resconet/jsbridge**
18
- ## Include npm module in project
37
+ - install package **npm i @resconet/jsbridge**
38
+
39
+ ## Using the library
19
40
 
20
- * **Javascript file**
21
- You can use require to include npm module from installed package. For example
41
+ - **Javascript file**
42
+ You can use require to include the module from installed packages. For example
22
43
 
23
44
  ```javascript
24
- require ("@resconet/jsbridge/src/JSBridge");
45
+ require("@resconet/jsbridge");
25
46
 
26
- function testAlert(){
27
- MobileCRM.bridge.alert("Test");
47
+ function testAlert() {
48
+ MobileCRM.bridge.alert("Test");
28
49
  }
29
50
  ```
30
51
 
31
- * **Typescript file**
32
- You can use import to include npm module from installed package. For example
52
+ - **Typescript file**
53
+ You can use import to include the module from installed packages. For example
33
54
 
34
55
  ```javascript
35
- import "@resconet/jsbridge/src/JSBridge"
56
+ import "@resconet/jsbridge";
36
57
 
37
- function testAlert(){
38
- MobileCRM.bridge.alert("Test");
58
+ function testAlert() {
59
+ MobileCRM.bridge.alert("Test");
39
60
  }
40
61
  ```
41
62
 
42
63
  ## Versioning
43
64
 
44
65
  The package.json defines the version of JSBridge. e.g. "version": "12.3.1", it means
45
- * 12.3: Major revision (copies the version of underlying Mobile CRM app)
46
- * 1: Bug fix release
66
+
67
+ - 12.3: Major revision (copies the version of underlying Mobile CRM app)
68
+ - 1: Bug fix release
47
69
 
48
70
  **important** first two numbers mirror the latest version of Mobile CRM native application that supports the features.
49
71
 
@@ -58,4 +80,5 @@ The Package is published to npm registry page on release publish event.
58
80
  The Bug fix release number is automatically updated when new js or ts file is pushed.
59
81
 
60
82
  ## Contact
83
+
61
84
  For any questions or any specific circumstances, please contact us on the email mobilecrm@resco.net