Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
ngOnInit() {
SurveyKo.JsonObject.metaData.addProperty(
"questionbase",
"popupdescription:text"
);
SurveyKo.JsonObject.metaData.addProperty("page", "popupdescription:text");
let options = { showEmbededSurveyTab: true, generateValidJSON: true };
this.surveyCreator = new SurveyCreator.SurveyCreator(
"surveyCreatorContainer",
options
);
this.surveyCreator.text = JSON.stringify(this.json);
this.surveyCreator.saveSurveyFunc = this.saveMySurvey;
}
mounted() {
let options = { showEmbededSurveyTab: true };
this.surveyCreator = new SurveyCreator.SurveyCreator(
"surveyCreatorContainer",
options
);
this.surveyCreator.saveSurveyFunc = function() {
console.log(JSON.stringify(this.text));
};
}
};
componentDidMount() {
this.surveyCreator = new SurveyJSCreator.SurveyCreator("surveyCreatorContainer")
this.surveyCreator.saveSurveyFunc = this.saveSurvey;
this.props.getEmployees();
}
componentDidMount() {
let options = { showEmbededSurveyTab: true };
this.surveyCreator = new SurveyJSCreator.SurveyCreator(
"surveyCreatorContainer",
options
);
this.surveyCreator.saveSurveyFunc = this.saveMySurvey;
}
render() {