Try Install Learn Blog API Packages GitHub
Pages

Ui.ContainedImage

A component to display an image contained in a variable size parent element.

Properties

alt
:
String
=
""

The alt value for the image.

onUpdate
:
Function(Ui.ContainedImage, Promise(Void))
=
Promise.never1

Called when the position and size is updated.

padding
:
Number
=
10

The padding to add to the container.

src
:
String

The source of the image.

Functions

render
:
Html

Renders the component.

update
:
Promise(Void)

Sets the position and size of the image to be contained in the container.