custom_question_types.editor_schema.attributes.my_custom_attribute_name.type - Initialization - Question Editor API

Question Editor API Initialization

type

Define the type of input.

Values

Attribute path custom_question_types.editor_schema.attributes.my_custom_attribute_name.type

Type string

Possible values

  • "string" - a simple text input (text only).
  • "number" - a simple number text input (number only).
  • "boolean" - a toggle box.
  • "editor" - a Rich Text Editor box (like our stimulus).
  • "question" - render the current Custom Question by reusing the same Question JSON and its provided white_list (the attributes you want to render in this current Question instance). When you attempt this Question, its value will be passed into the Question JSON instance - think of the rendered multiple choice Question in the Validation section of the Question Editor, when you attempt it, its response values like [0, 1, 2] will be used as the validation.valid_response.value as we use the schemas of validation.valid_response.value in Question.
  • "array" - an array of configurable properties. E.g. The Options array in our Multiple Choice Question, where you can add/remove options to create an array of strings, for example. If this is set, the items property should be used to define the element for each array entry.
  • "object" - for nesting further attributes.

this is a mandatory property.

Was this article helpful?

Did you arrive here by accident? If so, learn more about Learnosity.