Heading
Class: Chunk OboNode Full Name: ObojoboDraft.Chunks.HeadingCreates 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>