Illustrator
The component for adding illustrator credit.
Declaration
object IllustratorProperties
| Name | Type | Description |
|---|---|---|
role Required | string | Always |
text Required | string | The text to display in the article, including any formatting tags depending on the You can also use a subset of HTML tags or Markdown syntax by setting format to |
additions | [Addition] | An array of all the additions that you apply to ranges of the component’s text. If you set |
anchor | Anchor | An object that defines vertical alignment with another component. |
animation | (ComponentAnimation | string("none")) | An object that defines an animation you apply to the component. Use the |
behavior | (Behavior | string("none")) | An object that defines behavior for a component, like Parallax or Springy. Use the |
conditional | (ConditionalText | [ConditionalText]) | An instance or array of text components that you can apply conditionally, and the conditions that cause Apple News Format to apply them. |
format | string | The formatting or markup method applied to the text. If you set |
hidden | boolean | A Boolean value that determines whether the component is hidden. |
identifier | string | An optional unique identifier for this component. If you use |
inlineTextStyles | ([InlineTextStyle] | string("none")) | An array of Apple News Format ignores inline text styles when Use the |
layout | (ComponentLayout | string) | An inline If you don’t define |
style | (ComponentStyle | string | string("none")) | An inline Use the |
textStyle | (ComponentTextStyle | string) | An inline |
Mentioned in
Discussion
Use the Illustrator component to indicate the name of the contributor whose illustrations appear in the article. For photo attributions, you can use the Photographer component.
Example
{
"components": [
{
"role": "byline",
"text": "by MICHAEL BURNS | October 25, 2015 | 11:15 AM",
"layout": {
"columnStart": 0,
"columnSpan": 7,
"margin": {
"top": 20,
"bottom": 10
}
}
},
{
"role": "illustrator",
"text": "Illustrations by URNA SEMPER",
"layout": {
"columnStart": 0,
"columnSpan": 7,
"margin": {
"bottom": 15
}
}
}
]
}