ListItemStyle
The object for defining the style for bulleted or numbered lists in an article.
Declaration
object ListItemStyleProperties
| Name | Type | Description |
|---|---|---|
type Required | string | The type of list item indicator to use. Allowed options are:
|
character | string | If |
Discussion
Use the ListItemStyle object to define text formatting for a bulleted (unordered) or numbered (ordered) list. Put listItemStyle inside a TextStyle object or ComponentTextStyle object and set the text component’s format property to html. See Using HTML with Apple News Format.
You can use this object in TextStyle and ComponentTextStyle.
Example
{
"componentTextStyles": {
"exampleStyle": {
…
"unorderedListItems": {
"type": "character",
"character": "✓"
}
}
}
}