Skip to content

Commit a5bbba8

Browse files
committed
Update the example to SurveyJS v2.0
1 parent c86d62d commit a5bbba8

File tree

5 files changed

+4554
-2348
lines changed

5 files changed

+4554
-2348
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ Open http://localhost:3000 in your web browser.
1515

1616
## How to add SurveyJS Form Builder to your Nuxt application
1717

18-
1918
1. Install the `survey-creator-vue` npm package:
2019

2120
```bash

components/SurveyCreator.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
<script setup lang="ts">
22
import type { ICreatorOptions } from "survey-creator-core";
33
import { SurveyCreatorModel } from "survey-creator-core";
4+
// Enable Ace Editor in the JSON Editor tab
5+
import "ace-builds/src-noconflict/ace";
6+
import "ace-builds/src-noconflict/ext-searchbox";
47
58
const creatorOptions: ICreatorOptions = {
6-
showLogicTab: true,
7-
isAutoSave: true
9+
autoSaveEnabled: true
810
};
911
1012
const defaultJson = {

nuxt.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ export default defineNuxtConfig({
33
compatibilityDate: '2024-04-03',
44
devtools: { enabled: true },
55
css: [
6-
'survey-core/defaultV2.min.css',
6+
'survey-core/survey-core.min.css',
77
'survey-creator-core/survey-creator-core.min.css'
88
],
99
plugins: ['~/plugins/surveyjs-form-builder.client.ts']

0 commit comments

Comments
 (0)