/widgets

The collection of custom widgets for SurveyJS :package:

Primary LanguageJavaScriptMIT LicenseMIT

Widgets Build Status Software License

Getting started

es5 examples: https://surveyjs.io/Examples/Library/?id=custom-widget-select2-tagbox
es modules examples: https://stackblitz.com/edit/surveyjs-widgets-react

Install the library using es5.

<script src="https://unpkg.com/surveyjs-widgets"></script>

Install the library using npm.

npm install surveyjs-widgets

Or use Azure CDN: https://surveyjs.azureedge.net/0.95.0/surveyjs-widgets.min.js

You find all versions/builds in the surveyjs/build repo.

Building surveyjs-widgets from sources

To build library yourself:

  1. Clone the repo from GitHub

    git clone https://github.com/surveyjs/widgets.git
    cd surveyjs-widgets
    
  2. Acquire build dependencies. Make sure you have Node.js installed on your workstation. This is only needed to build surveyjs from sources.

    npm install
    
  3. Build the library

    npm run build
    

    After that you should have the libraries (angular, jquery, knockout, react and vue) at 'packages' directory.

  4. Add your own custom widget

    Please go to this plunker and select customwidget.js to review the code and comments.

    The same plunker example, but for SurveyJS Editor/Builder

License

MIT license