@@ -977,13 +977,13 @@ With Scope:
977
977
978
978
## Props
979
979
980
- | Name | Description | Type | Default |
981
- | ------------------------------------------------------ | --------------------------------------------------------------------------------------------- | ------- | ----------- |
982
- | v-model /<br >modelValue (Vue 3) /<br >value (Vue 2) | binding value | any | |
983
- | mode /<br >v-model: mode (Vue 3) /<br >: mode .sync (Vue 2) | edit mode | ` Mode ` | ` Mode.tree ` |
984
- | debounce | debounce delay to update the binding value when typing in text mode, in milliseconds | number | ` 300 ` |
985
- | stringified | whether to keep the binding value as stringified JSON in text mode | boolean | ` true ` |
986
- | ... | properties of [ svelte-jsoneditor] ( https://github.com/josdejong/svelte-jsoneditor/#properties ) | | |
980
+ | Name | Description | Type | Default |
981
+ | ------------------------------------------------------ | --------------------------------------------------------------------------------------------- | ------------------------------------ | ----------- |
982
+ | v-model /<br >modelValue (Vue 3) /<br >value (Vue 2) | binding value | any | |
983
+ | mode /<br >v-model: mode (Vue 3) /<br >: mode .sync (Vue 2) | edit mode | ` Mode ` /< br >you can use string in JS | ` Mode.tree ` |
984
+ | debounce | debounce delay to update the binding value when typing in text mode, in milliseconds | number | ` 300 ` |
985
+ | stringified | whether to keep the binding value as stringified JSON in text mode | boolean | ` true ` |
986
+ | ... | properties of [ svelte-jsoneditor] ( https://github.com/josdejong/svelte-jsoneditor/#properties ) | | |
987
987
988
988
### parsed JSON vs. stringified JSON
989
989
@@ -1038,6 +1038,10 @@ import { Mode } from 'vanilla-jsoneditor'
1038
1038
</template>
1039
1039
```
1040
1040
1041
+ > [ !Tip]
1042
+ >
1043
+ > You can use ` mode="text" ` in JavaScript context without installing vanilla-jsoneditor.
1044
+
1041
1045
### Naming convention
1042
1046
1043
1047
Support camelCase and kebab-case for tag & property name.
0 commit comments