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

Heading

Class: Chunk OboNode  Full Name: ObojoboDraft.Chunks.Heading

Creates headings similar to <H1> to <H6> tags in HTML.

Properties

Property Required Type Description
textGroup Required textGroup Expects 1 text item.
headingLevel no Integer Default: 1. A value from 1 to 6 representing the heading level where 1 is the primary heading.

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

None

Variables Registered

None

Examples

JSON

{
	"type": "ObojoboDraft.Chunks.Heading",
	"id": "...",
	"content": {
		"headingLevel": 1,
		"textGroup": [
			{
				"text": {
					"value": "Heading 1"
				}
			}
		]
	}
}

XML

<Heading headingLevel="1">
  <textGroup>
    <t>Heading 1</t>
  </textGroup>
</Heading>

OboHTML

<h1>Heading 1</h1>
  • Properties
  • Supported Trigger Types
  • Required Children
  • Variables Registered
  • Examples
    • JSON
    • XML
    • OboHTML
Visit Obojobo on GitHub
Obojobo
Obojobo™ ©2021 University of Central Florida