Skip to content

The collection of custom widgets for SurveyJS: Survey Library and Survey Creator 📦

License

Notifications You must be signed in to change notification settings

surveyjs/custom-widgets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

038676a Â· Mar 7, 2025
Aug 31, 2022
May 26, 2023
Jan 31, 2025
May 26, 2023
Oct 19, 2017
Jul 1, 2020
Jul 30, 2019
Mar 7, 2025
Mar 4, 2019
Feb 27, 2024
Dec 21, 2017
Jan 21, 2025
Mar 7, 2025
Mar 7, 2025
Sep 23, 2021
Feb 26, 2024

Repository files navigation

Widgets

Build.Node.js CI

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 unpkg CDN: https://unpkg.com/surveyjs-widgets@{version-number}/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 Survey Creator / Form Builder

License

MIT license