How to use the survey-angular.ReactSurveyModel function in survey-angular

To help you get started, we’ve selected a few survey-angular examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github abritopach / ionic-surveyjs / src / components / survey / survey.ts View on Github external
@Input() set survey(survey) {
        Survey.Survey.cssType = "bootstrap";
        Survey.defaultBootstrapCss.navigationButton = "btn btn-green";

        this._survey = survey;
        let surveyModel = new Survey.ReactSurveyModel({ surveyId: this._survey.Id });

        // Change language.
        surveyModel.locale = "es";

        // Progress Bar.
        surveyModel.showProgressBar = 'bottom';

        surveyModel.onComplete.add(this.sendDataToServer.bind(this));
        Survey.SurveyNG.render('surveyElement', { model: surveyModel });

    }

survey-angular

survey.js is a JavaScript Survey Library. It is a modern way to add a survey to your website. It uses JSON for survey metadata and results.

MIT
Latest version published 4 days ago

Package Health Score

87 / 100
Full package analysis