Giter Club home page Giter Club logo

surveyjs.editor's Introduction

survey.js.editor is the visual editor for surveyjs. It uses JSON to store the survey metadata.

Build Status

#Download Dowload the latest version as zip file Download

Install the library using npm.

npm install surveyjs-editor

#Example of using

<div id="surveyjseditor"></div>
<script type="text/javascript">
	var editor = new SurveyEditor.SurveyEditor("surveyjseditor");
	//set the survey json
	editor.text = JSON.stringify({pages:[questions:[{ name: "rateme", type: "rating" }]]});
	// setting saveSurveyFunc will make visible the save button
	// use it to save the survey json as text in your database
	editor.saveSurveyFunc = function() { var myJSONText = editor.text; };
</script>

See the visual editor in action.

##Building surveyjs Editor from sources

To build library yourself:

  1. Clone the repo from GitHub

    git clone https://github.com/andrewtelnov/surveyjs.editor.git
    cd surveyjs.editor
    
  2. Acquire build dependencies. Make sure you have Node.js installed on your workstation.

    npm install -g gulp
    npm install -g typings
    npm install
    

    The first npm command sets up the popular Gulp build tool. The second npm command sets up the Typescript Definition Manager Typings.

  3. Create TypeScript definition files

    typings install
    

    Typescript definition files should be located at 'typings' directory.

  4. Build the library

    gulp makedist
    

    After that you should have the library at 'dist' directory.

  5. Run unit tests

    gulp copyfiles
    gulp test_ci
    

    The first command will copy all required files to 'wwwroot' directory and the last command will run unit tests usign Karma

##Coming features

Find the features under development and Todo list in the Trello board.

#Dependencies The library depends from: surveyjs, knockoutjs, bootstrap and ace editor.

#License

Non-commercial use Commercial use
Noncommercial Please contact me: andrew.telnov at gmail.com

surveyjs.editor's People

Contributors

andrewtelnov avatar

Watchers

Lokendra Khandelwal avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.