ImageBlock
init
Creates an ImageBlock
instance.
Name | Type | Required | Default | Description |
---|---|---|---|---|
imageUrl |
| true | The url for the image. Maximum of 3000 characters. | |
altText |
| false |
| The alt text for the |
Return: The ImageBlock
instance.
id
Sets a custom identifier for the ImageBlock
instance.
Name | Type | Required | Default | Description |
---|---|---|---|---|
id |
| true | The custom identifier for the |
Return: The ImageBlock
instance.
alt
Sets the alt text for the ImageBlock
instance.
Name | Type | Required | Default | Description |
---|---|---|---|---|
altText |
| true | The alt text for the image. Maximum of 2000 characters. |
Return: The ImageBlock
instance.
title
Sets the title for the ImageBlock
instance.
Name | Type | Required | Default | Description |
---|---|---|---|---|
title |
| true | The title for the image. Maximum of 2000 characters. |
Return: The ImageBlock
instance.
getMemento
Converts the ImageBlock
instance to a serializable format.
Name | Type | Required | Default | Description |
---|---|---|---|---|
No arguments |
Return: (struct
) A struct representing this ImageBlock
instance.
Last updated