Browse Source

Expose whole form value as a data binding

master
Andrew Kingston 5 years ago
parent
commit
d7720e2643
  1. 4
      packages/client/manifest.json
  2. 1
      packages/client/src/components/app/forms/InnerForm.svelte

4
packages/client/manifest.json

@ -1837,6 +1837,10 @@
{ {
"type": "static", "type": "static",
"values": [ "values": [
{
"label": "Value",
"key": "__value"
},
{ {
"label": "Valid", "label": "Valid",
"key": "__valid" "key": "__valid"

1
packages/client/src/components/app/forms/InnerForm.svelte

@ -59,6 +59,7 @@
...formValue, ...formValue,
// These static values are prefixed to avoid clashes with actual columns // These static values are prefixed to avoid clashes with actual columns
__value: formValue,
__valid: valid, __valid: valid,
__currentStep: $currentStep, __currentStep: $currentStep,
__currentStepValid: $currentStepValid, __currentStepValid: $currentStepValid,

Loading…
Cancel
Save