Try Install Learn Blog API Packages GitHub
Pages

Ui.Image

An image component.

States

loaded
:
Bool
=
false

Wether or not the image is loaded.

visible
:
Bool
=
false

Wether or not the image is visible.

Properties

alt
:
String
=
""

The alt attribute for the image.

borderRadius
:
String
=
""

The value for the border-radius CSS property.

draggable
:
Bool
=
false

Wehter or not the image is draggable using browser drag & drop.

fullWidth
:
Bool
=
false

Wether or not the image fills the width of it's parent element.

height
:
Number
=
100

The height of the image.

src
:
String
=
""

The source of the image.

width
:
Number
=
100

The width of the image.

Functions

handleDragStart
(
event
:
Html.Event
)
:
Void

The drag start event handler.

handleLoad
:
Promise(Never, Void)

The load event handler.

render
:
Html

Renders the image.