NumericAssessment
Class: Chunk OboNode Full Name: ObojoboDraft.Chunks.NumericAssessmentThis is the input-a-number portion of a question containing several answer choices.
Properties
Property | Required | Type | Description |
---|---|---|---|
units | no | textGroup | An optional one-item TextGroup - this text will be displayed after the answer input. |
Supported Trigger Types
Action Type | Description |
---|---|
onMount | Fired when a node is added to the DOM |
onUnmount | Fired when a node is removed from the DOM |
Required Children
Zero or more NumericChoice nodes.
Variables Registered
None
Example
JSON
{
"type": "ObojoboDraft.Chunks.NumericAssessment",
"id": "...",
"content": {
"units": [{ "text": { "value": "grams" } }]
},
"children": [
{
"type": "ObojoboDraft.Chunks.NumericAssessment.NumericChoice",
"id": "...",
"content": {
"score": 100
},
"children": [
{
"type": "ObojoboDraft.Chunks.NumericAssessment.NumericAnswer",
"id": "...",
"content": {
"answer": "4",
"requirement": "exact"
}
}
]
}
]
}
XML
<NumericAssessment>
<units>
<textGroup><t>grams</t></textGroup>
</units>
<NumericChoice score="100">
<NumericAnswer answer="4" requirement="exact" />
</NumericChoice>
</NumericAssessment>