Code Monkey home page Code Monkey logo

Comments (7)

prakhar1989 avatar prakhar1989 commented on July 20, 2024

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.

etosch avatar etosch commented on July 20, 2024

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.

prakhar1989 avatar prakhar1989 commented on July 20, 2024

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

etosch avatar etosch commented on July 20, 2024

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.

prakhar1989 avatar prakhar1989 commented on July 20, 2024

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.

etosch avatar etosch commented on July 20, 2024

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

prakhar1989 avatar prakhar1989 commented on July 20, 2024

Ok. I'll try and figure this out and get back to you if I'm stuck.

from react-surveyman.

Related Issues (20)

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.