Comments (7)
You mean an option group, right? I was planning to have a similar area for stored Option groups (below the toolbox for example) where users can save set of options as one block and then drag them in one go. The options can be persisted in localStorage at the start. I plan to get working on this as soon as treeview and other easier features stabilize.
from react-surveyman.
Sounds good!
On Apr 29, 2015, at 10:51 PM, Prakhar Srivastav [email protected] wrote:
You mean an option group, right? I was planning to have a similar area for stored Option groups (below the toolbox for example) where users can save set of options as one block and then drag them in one go. The options can be persisted in localStorage at the start. I plan to get working on this as soon as treeview and other easier features stabilize.
—
Reply to this email directly or view it on GitHub.
from react-surveyman.
@etosch : Quick question - Is it fair to assume that the question ids generated in a survey are unique across the survey (across blocks, subblocks etc.)? I've not yet looked at how those are generated. Can you also point me to the code where those are generated as I need to do the same in this project?
from react-surveyman.
There is an internal id that is uniquely generated, but the id that’s used in surveyman.js takes the form from the csv implementation. This allowed us to debug more easily (e.g., ensure that the randomization was occurring properly), to look up the value of the id in the original csv, etc.
When re-using options, as we’ve been discussing, they should each have a unique id.
On May 1, 2015, at 11:06 AM, Prakhar Srivastav [email protected] wrote:
@etosch : Quick question - Is it fair to assume that the question ids generated in a survey are unique across the survey (across blocks, subblocks etc.)? I've not yet looked at how those are generated. Can you also point me to the code where those are generated as I need to do the same in this project?
—
Reply to this email directly or view it on GitHub.
from react-surveyman.
That sounds good. However, when the survey is generated from react-surveyman how should I instantiate new types with IDs since I don't have a row
or col
?
from react-surveyman.
“col” should be the same for all Options. “row” is computed from the existing options associated with the containing question — just set it to be the size of the current list of options.
On May 4, 2015, at 9:11 AM, Prakhar Srivastav [email protected] wrote:
That sounds good. However, when the survey is generated from react-surveyman how should I instantiate new types with IDs since I don't have a row or col?
—
Reply to this email directly or view it on GitHub.
from react-surveyman.
Ok. I'll try and figure this out and get back to you if I'm stuck.
from react-surveyman.
Related Issues (20)
- Add transitions HOT 2
- Fix id generation HOT 3
- Ability to duplicate blocks and questions
- Validate JSON Schema
- Ability to Save / Load surveys HOT 4
- Allow items to be positioned arbitrarily when being dropped HOT 6
- drop broke in safari HOT 3
- Add support for Subblocks HOT 3
- testing slack integration
- randomization button? HOT 5
- Clicking on x in the select component gives a NaN
- Add linting for ES6
- Move to ES6 classes HOT 2
- Apply fixed positioning to the Toolbox
- Add properties to the Question Schema HOT 5
- Broken package HOT 7
- Survey Incremental Validation HOT 13
- License type HOT 3
- s/ordering/ordered
- Several module not found errors HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-surveyman.