Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// showDescription(question);
alert(options.question.popupdescription);
};
const header = options.htmlElement.querySelector('h5');
const span = document.createElement('span');
span.innerHTML = ' ';
header.appendChild(span);
header.appendChild(btn);
});
surveyModel.onComplete
.add((result, options) => {
this.submitSurvey.emit(result.data);
this.result = result.data;
}
);
Survey.SurveyNG.render('surveyElement', { model: surveyModel });
}
savePDF() {
@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 });
}