ImageBlock
Last updated
Last updated
Creates an ImageBlock
instance.
Name | Type | Required | Default | Description |
---|---|---|---|---|
Return: The ImageBlock
instance.
Sets a custom identifier for the ImageBlock
instance.
Name | Type | Required | Default | Description |
---|---|---|---|---|
Return: The ImageBlock
instance.
Sets the alt text for the ImageBlock
instance.
Name | Type | Required | Default | Description |
---|---|---|---|---|
Return: The ImageBlock
instance.
Sets the title for the ImageBlock
instance.
Return: The ImageBlock
instance.
Converts the ImageBlock
instance to a serializable format.
Return: (struct
) A struct representing this ImageBlock
instance.
Name | Type | Required | Default | Description |
---|---|---|---|---|
Name | Type | Required | Default | Description |
---|---|---|---|---|
imageUrl
string
true
The url for the image. Maximum of 3000 characters.
altText
string
false
""
(empty string)
The alt text for the ImageBlock
. If no alt text is provided here, it must be configured using the alt
method before serializing.
id
string
true
The custom identifier for the ImageBlock
instance.
altText
string
true
The alt text for the image. Maximum of 2000 characters.
title
string
true
The title for the image. Maximum of 2000 characters.
No arguments