<ol>
<ol> is a Sectional
component that defines an ordered (numbered) list. List items are nested within using an <li> tag.
Attributes and Properties
Attributes for <ol>
Scoring (10)
aggregateScoresAdded in 0.7.21boolean. Default value: false. Whether to aggregate scores of scored descendants into a section credit-achieved value.
colorAnswersSeparatelyAdded in 0.7.21boolean. Default value: false. When section-wide check work is enabled, color each answer based on its own correctness rather than the section's overall credit.
colorCorrectnessAdded in 0.7.21boolean. Default value: true. Whether to color-code the answers it contains based on correctness.
displayDigitsForCreditAchievedAdded in 0.7.21integer. Default value: 3. Number of significant digits to display for the credit achieved value.
maxNumAttemptsAdded in 0.7.21integer. Default value: Infinity. Maximum number of times the section-wide check-work button can be submitted. Once reached, all enclosed answers are disabled.
sectionWideCheckWorkAdded in 0.7.21boolean. Default value: false. Whether to show a single section-wide check-work button instead of per-answer buttons.
showCorrectnessAdded in 0.7.21boolean. Default value: true. Whether to display correctness indicators for the answers it contains.
submitLabelAdded in 0.7.21text. Default value: Check Work. Label for the section-wide submit button when correctness is shown.
submitLabelNoCorrectnessAdded in 0.7.21text. Default value: Submit Response. Label for the section-wide submit button when correctness is not shown.
weightAdded in 0.7.21number. Default value: 1. Relative weight of this section when aggregated by an enclosing scored section.
Other (2)
integer. Nesting level of this list (1-based).
text. Marker style for the list items: 1, a, A, i, or I. The value is matched on its first character, so a decorated form such as 1. or a) selects the same style. Defaults to a style chosen by the list's nesting level.
| Value | Description |
|---|---|
1 | Arabic numerals: 1, 2, 3, β¦ |
a | Lowercase letters: a, b, c, β¦ |
A | Uppercase letters: A, B, C, β¦ |
i | Lowercase roman numerals: i, ii, iii, β¦ |
I | Uppercase roman numerals: I, II, III, β¦ |
Common to all components (9)
copyreference. Create an independent copy of another component by reference. Enter a references a $name.
disabledboolean. Default value: false. Whether this component is disabled and cannot be interacted with.
extendreference. Extend another component by reference, inheriting its children and attributes. Enter a reference as $name.
fixedboolean. Default value: false. Whether this component's value is fixed and cannot be modified.
fixLocationboolean. Default value: false. Whether this component's location is fixed (preventing it from being moved while still allowing other modifications).
hideboolean. Default value: false. Whether to hide this component from the rendered output.
isResponseboolean. Default value: false. Whether this component is treated as a response for the purposes of assessment.
nametext. The name used to reference this component from elsewhere in the document.
styleNumberinteger. Default value: 1. The style number used to select this component's visual styling from the available style definitions.
Properties for <ol name="o">
Scoring (9)
$o.aggregateScoresAdded in 0.7.21boolean. Whether scores of scored descendants are aggregated into this section's credit value.
$o.colorCorrectnessAdded in 0.7.22boolean. Whether the answers this section contains are color-coded by correctness, after combining the attribute with any enclosing section's setting and with whether correctness is shown at all.
$o.displayDigitsForCreditAchievedAdded in 0.7.21integer. Number of significant digits to display for the credit achieved value.
$o.maxNumAttemptsAdded in 0.7.21integer. Maximum number of times the section-wide check-work button can be submitted. Once reached, all enclosed answers are disabled.
$o.sectionWideCheckWorkAdded in 0.7.21boolean. Whether to show a single section-wide check-work button instead of per-answer buttons.
$o.showCorrectnessAdded in 0.7.22boolean. Whether correctness is shown for the answers this section contains, after combining the attribute with any enclosing section's setting and with the activity-wide flag.
$o.submitLabelAdded in 0.7.21text. Label for the section-wide submit button when correctness is shown.
$o.submitLabelNoCorrectnessAdded in 0.7.21text. Label for the section-wide submit button when correctness is not shown.
$o.weightAdded in 0.7.21number. Relative weight of this section when aggregated by an enclosing scored section.
Other (8)
$o.creditAchievedAdded in 0.7.21number. Aggregate credit achieved (between 0 and 1) for scored descendants of this section.
$o.disabledboolean. Whether this component is disabled and cannot be interacted with.
$o.fixedboolean. Whether this component's value is fixed and cannot be modified.
$o.fixLocationboolean. Whether this component's location is fixed (preventing it from being moved while still allowing other modifications).
$o.numAttemptsLeftAdded in 0.7.21integer. Remaining number of section-wide submissions before the maximum is reached.
$o.numSubmissionsAdded in 0.7.21integer. Number of times the section-wide check-work button has been submitted.
$o.percentCreditAchievedAdded in 0.7.21number. Aggregate credit achieved as a percentage (between 0 and 100).
Common to all components (4)
$o.doenetMLtext. The DoenetML source code that produced this component.
$o.hideboolean. Whether to hide this component from the rendered output.
$o.isResponseboolean. Whether this component is treated as a response for the purposes of assessment.
$o.styleNumberinteger. The style number used to select this component's visual styling from the available style definitions.
Examples
Example: <ol> with nested <li>
<ol> renders an ordered list, with list items given by <li> children. <ol>
should not contain any components other than <li> children. Individual <li> children
may themselves contain graphs, problems, paragraphs, and other content.
Attribute Examples
Attribute Example: level
When nesting <ol> components, the level attribute can be used to specify a
change in the counting marker for the inner lists.
Attribute Example: marker
Use the marker attribute to indicate a specific counting marker for the list:
1, a, A, i, or I. The value is matched on its first character, so a
decorated form such as 1. or a) selects the same style. See
the level example for the default markers at each level.