How to use the survey-angular.SurveyNG 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 surveyjs / surveyjs_angular_cli / src / app / survey.component.ts View on Github external
// 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() {
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 5 days ago

Package Health Score

93 / 100
Full package analysis