项目作者: surveyjs

项目描述 :
The collection of custom widgets for SurveyJS: Survey Library and Survey Creator :package:
高级语言: JavaScript
项目地址: git://github.com/surveyjs/custom-widgets.git
创建时间: 2017-10-09T12:46:23Z
项目社区:https://github.com/surveyjs/custom-widgets

开源协议:MIT License

下载


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.

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

Install the library using npm.

  1. 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

    1. git clone https://github.com/surveyjs/widgets.git
    2. 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.

    1. npm install
  3. Build the library

    1. 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