lrperlmu / emotional_clarity

Micro interventions to help teens get through stress.
0 stars 2 forks source link

LikertFrame #55

Closed lrperlmu closed 4 years ago

lrperlmu commented 5 years ago

Make a new frame class!

lrperlmu commented 5 years ago
{
  template: "likert", // (should come from constants.js)
  title: "asdlf", // string (should come from constants.js)
  instructions: "asdfas", // instructions for the user (should come from constants.js)
  questions: [  // provided in constructor
    ["the question", undefined],  // question text, user response: a number 1-5 (defaults to undefined)
    [asdklfja;slkdfj, undefined],
    ...,
  ],
}
lrperlmu commented 5 years ago

How does the frame return user input to nav? aka: What does get_user_input() return? Returns map of user input containing keys { 'question_text': number (1-5) (undefined is NOT a valid value) }

(precondition to calling get_user_input is that all of the values are numbers, NOT undefined)

lrperlmu commented 5 years ago