Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generalize 2 option forced choice tasks to take more options (forcedChoice, sentenceChoice, imageSelection) #57

Open
michael-franke opened this issue Apr 13, 2019 · 1 comment

Comments

@michael-franke
Copy link
Member

Currently, the template views forcedChoice, sentenceChoice and imageSelection all take two options to select from. We should ideally generalize this to allow an arbitrary number of choice options.

Instead of providing options like this:

{
    picture: 'path/to/picture_of_bread.jpg',
    option1: 'jam',
    option2: 'ham'
}

We could have:

{
    picture: 'path/to/picture_of_bread.jpg',
    options: ['1', '2', '3', '4', '5', '6'],
    grid_layout: [3,2],
    fill_by: 'row',
}

with also an optional field grid_layout which takes the numbers of rows and columns of a table to be filled in with the options. Here [3,2] would give us three rows and two column. The optional field fill_by would specify whether to fill the grid row- or column-wise. The above would yield an display like this:

1 2
3 4
5 6

@JannisBush
Copy link
Contributor

This should be possible, but first we should finish/decide on #48

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants