{"id":19338614,"url":"https://github.com/surveyjs/surveyjs-vue-bootstrap-material","last_synced_at":"2025-04-23T01:31:28.225Z","repository":{"id":83218474,"uuid":"138278237","full_name":"surveyjs/surveyjs-vue-bootstrap-material","owner":"surveyjs","description":"SurveyJS Builder example with VueJS and Bootstrap-Material http://surveyjs.io/Library","archived":false,"fork":false,"pushed_at":"2018-10-26T07:47:57.000Z","size":140,"stargazers_count":2,"open_issues_count":0,"forks_count":5,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-04-13T21:57:42.617Z","etag":null,"topics":["bootstrap","bootstrap-material","javascript","survey","surveyjs","typescript","vuejs"],"latest_commit_sha":null,"homepage":"","language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/surveyjs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-22T08:42:51.000Z","updated_at":"2023-02-05T05:00:17.000Z","dependencies_parsed_at":"2023-06-28T23:31:00.799Z","dependency_job_id":null,"html_url":"https://github.com/surveyjs/surveyjs-vue-bootstrap-material","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/surveyjs%2Fsurveyjs-vue-bootstrap-material","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/surveyjs%2Fsurveyjs-vue-bootstrap-material/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/surveyjs%2Fsurveyjs-vue-bootstrap-material/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/surveyjs%2Fsurveyjs-vue-bootstrap-material/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/surveyjs","download_url":"https://codeload.github.com/surveyjs/surveyjs-vue-bootstrap-material/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250352307,"owners_count":21416468,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bootstrap","bootstrap-material","javascript","survey","surveyjs","typescript","vuejs"],"created_at":"2024-11-10T03:18:05.395Z","updated_at":"2025-04-23T01:31:28.208Z","avatar_url":"https://github.com/surveyjs.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# VueJS + SurveyJS/SurveyJS_Editor + Bootstrap Material QuickStart Source\n[![Build Status][travis-badge]][travis-badge-url]\n\n## How to run this sample application\n - git clone https://github.com/surveyjs/surveyjs-vue-bootstrap-material.git\n - cd surveyjs-vue-bootstrap-material\n - npm i\n - npm run dev\n - open http://localhost:8080/ in your web browser\n\n\nFor detailed explanation on how VueJS things work, checkout the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader).\n\n## Add survey component on your page\n\n### index.html\n```HTML\n\u003c!DOCTYPE html\u003e\n\u003chtml\u003e\n\n\u003chead\u003e\n  \u003cmeta charset=\"utf-8\"\u003e\n  \u003cmeta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\"\u003e\n  \u003cmeta name=\"viewport\" content=\"width=device-width,initial-scale=1.0\"\u003e\n  \u003clink rel=\"icon\" href=\"\u003c%= BASE_URL %\u003efavicon.ico\"\u003e\n  \u003ctitle\u003esurveyjs-vue-bootstrap-material\u003c/title\u003e\n  \u003cscript src=\"https://unpkg.com/jquery\"\u003e\u003c/script\u003e\n  \u003clink rel=\"stylesheet\" href=\"https://unpkg.com/bootstrap@3.3.7/dist/css/bootstrap.min.css\"\u003e\n  \u003cscript src=\"https://unpkg.com/bootstrap-material-design@0.5.10/dist/js/material.js\"\u003e\u003c/script\u003e\n  \u003cscript src=\"https://unpkg.com/bootstrap-material-design@0.5.10/dist/js/ripples.js\"\u003e\u003c/script\u003e\n  \u003clink rel=\"stylesheet\" href=\"https://unpkg.com/bootstrap-material-design@0.5.10/dist/css/bootstrap-material-design.css\"\u003e\n  \u003clink rel=\"stylesheet\" href=\"https://unpkg.com/bootstrap-material-design@0.5.10/dist/css/ripples.css\"\u003e\n\u003c/head\u003e\n\n\u003cbody\u003e\n  \u003cnoscript\u003e\n    \u003cstrong\u003eWe're sorry but my-project doesn't work properly without JavaScript enabled. Please enable it to continue.\u003c/strong\u003e\n  \u003c/noscript\u003e\n  \u003cdiv id=\"app\"\u003e\u003c/div\u003e\n  \u003c!-- built files will be auto injected --\u003e\n\u003c/body\u003e\n\n\u003cscript\u003e\n  window.$.material.init();\n\u003c/script\u003e\n\n\u003c/html\u003e\n```\n\n### VueJS component\n```JavaScript\n\u003ctemplate\u003e\n  \u003cdiv id=\"app\"\u003e\n    \u003cimg src=\"./assets/logo.png\"\u003e\n    \u003c!-- If you want to show survey, uncomment the line below --\u003e\n    \u003c!-- \u003csurvey :survey=\"survey\"\u003e\u003c/survey\u003e --\u003e\n    \u003c!-- If you want to show survey editor, uncomment the line below --\u003e\n    \u003c!-- \u003csurvey-editor\u003e\u003c/survey-editor\u003e --\u003e\n    \u003csurvey-editor\u003e\u003c/survey-editor\u003e\n  \u003c/div\u003e\n\u003c/template\u003e\n\n\u003cscript\u003e\n//In your VueJS App.vue or yourComponent.vue file add these lines to import\nimport SurveyEditor from './components/SurveyEditor'\nimport * as SurveyVue from 'survey-vue'\nimport 'bootstrap/dist/css/bootstrap.css';\n\nvar Survey = SurveyVue.Survey\nSurvey.cssType = \"bootstrap\";\n\n//If you want to add custom widgets package\n//Add these imports\nimport * as widgets from \"surveyjs-widgets\";\nimport \"inputmask/dist/inputmask/phone-codes/phone.js\";\n//And initialize widgets you are want ti use\nwidgets.icheck(SurveyVue);\nwidgets.select2(SurveyVue);\nwidgets.inputmask(SurveyVue);\nwidgets.jquerybarrating(SurveyVue);\nwidgets.jqueryuidatepicker(SurveyVue);\nwidgets.nouislider(SurveyVue);\nwidgets.select2tagbox(SurveyVue);\nwidgets.signaturepad(SurveyVue);\nwidgets.sortablejs(SurveyVue);\nwidgets.ckeditor(SurveyVue);\nwidgets.autocomplete(SurveyVue);\nwidgets.bootstrapslider(SurveyVue);\n\nexport default {\n  name: 'app',\n  components: {\n    Survey,\n    SurveyEditor\n  },\n  data () {\n    //Define Survey JSON\n    //Here is the simplest Survey with one text question\n    var json = {\n     elements: [\n      { type: \"text\", name: \"customerName\", title: \"What is your name?\", isRequired: true}\n     ]\n    };\n    \n    //Create the model and pass it into VueSJ Survey component\n    var model = new SurveyVue.Model(json)\n    //You may set model properties\n    // model.mode=\"display\"\n\n    return {\n        survey: model\n    }\n  }\n}\n\u003c/script\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsurveyjs%2Fsurveyjs-vue-bootstrap-material","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsurveyjs%2Fsurveyjs-vue-bootstrap-material","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsurveyjs%2Fsurveyjs-vue-bootstrap-material/lists"}