GitXplorerGitXplorer
e

react-survey-editor

public
2 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
d15761d4282c873337cfa7d063fcb22669e6b25a

remove disabled prop on upload (does not exist)

eexced committed 7 years ago
Unverified
bb6e378f68b06f4b86d2185d21d90b5cc0248cd5

v1.0.5

eexced committed 7 years ago
Unverified
b0e02a683ed6a3c9c8abd448305a1faf12588789

add image picker as base64 uploader

eexced committed 7 years ago
Unverified
c23997a2dd1961af49f3af28cf1f5a1ac75dbef9

v1.0.4

eexced committed 7 years ago
Unverified
7f760198fb2133d653abf78b55109e38ad116071

typescript export

eexced committed 7 years ago
Unverified
d0be7ac398e0ad77c45b614185b01e1e8baa0052

v1.0.3

eexced committed 7 years ago

README

The README file for this repository.

React Survey Editor

GitHub license Build Npm Npm

Install

yarn add react-survey-editor

Build

yarn lib

Usage

With Redux

import React from 'react'
import SurveyEditor from 'react-survey-editor'

const App = ({ onExport }) => (
 <SurveyEditor onExport={onExport} />
)

To dissociate ids generated by the library and those you bring, generated ids are prefixed by '@@'. It allows us to not provide a 'onAdd' method to avoid several server calls.

API

Name Type Default Required Description
onExport (string) => void () => { } false Function called when user click on Save button.
initialValue object See false Initial survey value
locale string "enUS" false Ant design locale language

TODO:

  • Add i18n translation

All contributions are welcome.