Text
Class: Chunk OboNode Full Name: ObojoboDraft.Chunks.TextA single block of text similar to a paragraph (<p>
) tag in HTML.
Learn more about using text in Text Content Conventions
Properties
Property | Required | Type | Description |
---|---|---|---|
textGroup | Required | textGroup | Expects 1 or more text items. |
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
Example
JSON
{
"type": "ObojoboDraft.Chunks.Text",
"id": "...",
"content": {
"textGroup": [
{
"text": {
"value": "Hello world!"
}
}
]
}
}
XML
<Text>
<textGroup>
<t>Hello world!</t>
</textGroup>
</Text>
OboHTML
<p>Hello world!</p>