ImageElement
init
Creates an ImageElement
instance.
Name | Type | Required | Default | Description |
---|---|---|---|---|
imageUrl |
| true | The url for the image. | |
altText |
| false |
| The alt text for the image. If alt text is not provided in the constructor, it must be provided using the |
Return: The ImageElement
instance.
alt
Sets the alt text for the ImageElement
instance.
Name | Type | Required | Default | Description |
---|---|---|---|---|
altText |
| true | The alt text for the |
Return: The ImageElement
instance.
getMemento
Converts the ImageElement
instance to a serializable format.
Name | Type | Required | Default | Description |
---|---|---|---|---|
No arguments |
Return: (struct
) A struct representing this ImageElement
instance.
Last updated