@bpmn-io/feel-editor 0.4.1 → 0.6.0
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 +13 -1
- package/dist/index.es.js +148 -99
- package/dist/index.js +145 -96
- package/package.json +21 -20
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @bpmn-io/feel-editor
|
|
2
2
|
|
|
3
|
-
Embeddable Editor for FEEL expressions.
|
|
3
|
+
Embeddable Editor for [FEEL expressions](https://docs.camunda.io/docs/components/modeler/feel/what-is-feel/).
|
|
4
4
|
|
|
5
5
|
## Usage
|
|
6
6
|
|
|
@@ -44,6 +44,18 @@ const editor = new FeelEditor({
|
|
|
44
44
|
});
|
|
45
45
|
```
|
|
46
46
|
|
|
47
|
+
The variables can be updated on the instance via `FeelEditor#setVariables()`:
|
|
48
|
+
|
|
49
|
+
```javascript
|
|
50
|
+
editor.setVariables([
|
|
51
|
+
{
|
|
52
|
+
name: 'newName',
|
|
53
|
+
detail: 'new variable inline info',
|
|
54
|
+
info: 'new pop-out info
|
|
55
|
+
}
|
|
56
|
+
]);
|
|
57
|
+
```
|
|
58
|
+
|
|
47
59
|
## Hacking the Project
|
|
48
60
|
|
|
49
61
|
To get the development setup make sure to have [NodeJS](https://nodejs.org/en/download/) installed.
|