@simpoobusiness/sdk 1.0.14 → 1.0.16

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/README.md CHANGED
@@ -12,10 +12,6 @@ No npm installation is required.
12
12
  Add these tags inside your `<head>` or before `</body>`:
13
13
 
14
14
  ```html
15
- <link
16
- rel="stylesheet"
17
- href="https://unpkg.com/@simpoobusiness/sdk/dist/simpoo-sdk.css"
18
- />
19
15
  <script src="https://unpkg.com/@simpoobusiness/sdk/dist/simpoo-sdk.js"></script>
20
16
  ```
21
17
 
@@ -26,6 +22,7 @@ Add a container where you want the inventory widget to appear:
26
22
  ```
27
23
 
28
24
  Then initialize and render the widget:
25
+ Preferrably before the the closing tag `</body> of the page`
29
26
 
30
27
  ```html
31
28
  <script>
@@ -63,12 +60,13 @@ SimpooSDK.init({ apiKey: "12345" });
63
60
 
64
61
  ---
65
62
 
66
- ### **SimpooSDK.renderInventory(containerSelector)**
63
+ ### **SimpooSDK.renderWidget(widget_name, selector)**
67
64
 
68
65
  Render the inventory widget in a container.
69
66
 
70
67
  **Parameters:**
71
68
 
69
+ - `widget_name` (string) – CSS selector for the container.
72
70
  - `selector` (string) – CSS selector for the container.
73
71
 
74
72
  **Example:**