Obojobo

Obojobo

  • Authors
  • Developers
  • GitHub

› Developers Section Topics

Getting Started

  • OboNode Structure
  • Text Content Conventions
  • Triggers and Actions

Misc Dev Topics

  • Obojobo Glossary
  • Question Selection Algorithm
  • Range Strings

Events Reference

  • Caliper Event Reference
  • Obojobo Event Reference

OboNode & Content Block Reference

  • ActionButton
  • Assessment
  • Assessment > rubric
  • Assessment > rubric > mod
  • Assessment > scoreAction
  • Break
  • Code
  • Content
  • Figure
  • Heading
  • HTML
  • IFrame
  • List
  • List > listStyle
  • List > listStyle > indent
  • Materia
  • MathEquation
  • MCAssessment
  • MCAssessment > MCChoice
  • MCAssessment > MCChoice > MCAnswer
  • MCAssessment > MCChoice > MCFeedback
  • Module
  • NumericAssessment
  • NumericAssessment > NumericChoice
  • NumericAssessment > NumericChoice > NumericAnswer
  • NumericAssessment > NumericChoice > NumericFeedback
  • Page
  • Question
  • QuestionBank
  • Table
  • Table > gridTextGroup
  • Text
  • textGroup
  • textGroup > textItem
  • textGroup > textItem > styleableText
  • textGroup > textItem > styleableText > styleList
  • trigger
  • trigger > action
  • YouTube

List > listStyle

Class: Content Block

A ListStyle is a description of how to format an List.

Properties

Property Required Type Description
type no String Default: unordered. Allowed values: unordered, ordered
indents no Array<indent> An object where the keys are various indent levels and the corresponding values are objects defining the styling options for items at that indent level which override the default styles. Indent levels are zero-indexed so 0 describes the first indent level, 1 is the second indent level and so on.

Required Children

None

Variables Registered

None

Example

Sample Render

1. Numbers
  A. Uppercase letters
    ■ Square bullets (as defined by the `2` value in `indents`)
      a. Lowercase letters
        V. Uppercase roman numerals starting at V. (as defined by the `4` value in `indents`)

JSON

{
	"listStyles": {
		"type": "ordered",
		"indents": {
			"2": {
				"type": "unordered",
				"bulletStyle": "square"
			},
			"4": {
				"start": 5,
				"bulletStyle": "upper-roman"
			}
		}
	}
}

OboXML

<listStyles>
  <type>ordered</type>
  <indents>
    <indent level="2" type="unordered" bulletStyle="square" />
    <indent level="4" type="ordered" start="10" bulletStyle="upper-alpha" />
  </indents>
</listStyles>
  • Properties
  • Required Children
  • Variables Registered
  • Example
    • Sample Render
    • JSON
    • OboXML
Visit Obojobo on GitHub
Obojobo
Obojobo™ ©2021 University of Central Florida