@kissflow/lowcode-client-sdk 1.0.18 → 1.0.19

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
@@ -293,8 +293,13 @@ kf.client.showInfo(message);
293
293
  ```
294
294
 
295
295
  ##### Show confirm
296
+ Displays the confirmation dialog, and returns users's action as a response
296
297
  ```js
297
- kf.client.showConfirm({ title, content });
298
+ kf.client.showConfirm({ title, content }).then((action) => {
299
+ if(action === "OK") // user clicked ok button
300
+
301
+ else // user clicked cancel button or clicked outside the popup
302
+ })
298
303
  ```
299
304
 
300
305
  ##### Redirect to URL
@@ -65,6 +65,11 @@
65
65
  "documentation": "Sets the specified tab index as active - works only for the tab component",
66
66
  "insertText": "// sets 2nd tab as active\ncomponentInstance.setActiveTab(${1:2})"
67
67
  },
68
+ {
69
+ "label": "set selected item",
70
+ "documentation": "Sets the specified instance as selected item - works only for master detail component",
71
+ "insertText": "componentInstance.setSelectedItem(\"${1:instanceId}\")"
72
+ },
68
73
  {
69
74
  "label": "get popup parameter",
70
75
  "documentation": "Get specific parameter in the popup",
@@ -149,7 +154,6 @@
149
154
  "documentation": "Retrieves the acccount id",
150
155
  "insertText": "kf.account._id"
151
156
  },
152
-
153
157
  {
154
158
  "label": "get dataform item",
155
159
  "documentation": "API call to get dataform item",
@@ -181,4 +185,4 @@
181
185
  "insertText": "let payload = {}:\nkf.api(`/process/2/${kf.account._id}/${1:processId}/`, {\n\tmethod: \"POST\",\n\tbody: JSON.stringify(payload)\n})\n.then((resp) => {${2}})\n.catch((err) => {${3}})"
182
186
  }
183
187
  ]
184
- }
188
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kissflow/lowcode-client-sdk",
3
- "version": "1.0.18",
3
+ "version": "1.0.19",
4
4
  "description": "JavaScript SDK for developing over the Kissflow lowcode platform",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [