Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
widgets.jquerybarrating(Survey);
widgets.jqueryuidatepicker(Survey);
widgets.nouislider(Survey);
widgets.select2tagbox(Survey);
widgets.signaturepad(Survey);
widgets.sortablejs(Survey);
widgets.ckeditor(Survey);
widgets.autocomplete(Survey);
widgets.bootstrapslider(Survey);
widgets.prettycheckbox(Survey);
//widgets.emotionsratings(Survey);
Survey.JsonObject.metaData.addProperty('questionbase', 'popupdescription:text');
Survey.JsonObject.metaData.addProperty('page', 'popupdescription:text');
Survey.StylesManager.applyTheme("default");
@Component({
// tslint:disable-next-line:component-selector
selector: 'survey',
template: `<div class="survey-container contentcontainer codecontainer"><div id="surveyElement"></div><button>Save PDF</button></div>`
})
export class SurveyComponent implements OnInit {
@Output() submitSurvey = new EventEmitter();
@Input()
json: object;
result: any;
ngOnInit() {
const surveyModel = new Survey.Model(this.json);
surveyModel.onAfterRenderQuestion.add((survey, options) => {
if (!options.question.popupdescription) { return; }