Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
@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 });
}