@industream/flowmaker-flowbox-ui-components 0.0.3 → 0.0.5
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 +15 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -24,6 +24,20 @@ A dropdown component that fetches and displays source connections from the DataC
|
|
|
24
24
|
|
|
25
25
|
### Quick Start
|
|
26
26
|
|
|
27
|
+
```svelte
|
|
28
|
+
<script>
|
|
29
|
+
let conn = $state('');
|
|
30
|
+
</script>
|
|
31
|
+
|
|
32
|
+
Selection: {{ conn }}
|
|
33
|
+
|
|
34
|
+
<DCSourceConnection
|
|
35
|
+
dcapiurl="http://localhost:8002"
|
|
36
|
+
sourcetypefilter="DataBridge"
|
|
37
|
+
onsourceselect={(newValue) => conn = newvalue}
|
|
38
|
+
/>
|
|
39
|
+
```
|
|
40
|
+
|
|
27
41
|
##### Environment Configuration with `jsonEnv`
|
|
28
42
|
|
|
29
43
|
```svelte
|
|
@@ -58,11 +72,11 @@ A dropdown component that fetches and displays source connections from the DataC
|
|
|
58
72
|
</div>
|
|
59
73
|
{/if}
|
|
60
74
|
</div>
|
|
61
|
-
|
|
62
75
|
```
|
|
63
76
|
|
|
64
77
|
|
|
65
78
|
|
|
79
|
+
|
|
66
80
|
The `jsonEnv(key)` helper from `flowMakerBridge` parses JSON environment variables from `context.environmentVars["environment/{key}"]`. It returns a reactive derived store that updates when context changes.
|
|
67
81
|
|
|
68
82
|
```svelte
|