Try Install Learn Blog API Packages GitHub
Pages
mint-ui

Search
Basic information
Entities
Versions
Dependencies
mint-color 0.5.0 <= v < 1.0.0

Ui.Image

An image component.

States

loaded
:
Bool
=
false

Whether or not the image is loaded.

visible
:
Bool
=
false

Whether 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.

fullHeight
:
Bool
=
false

Whether or not the image fills the height of it's parent element.

fullWidth
:
Bool
=
false

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

height
:
Ui.Size
=
Ui.Size::Px(100)

The height of the image.

objectFit
:
String
=
"cover"

The value for the object-fit CSS property.

objectPosition
:
String
=
"center"

The value for the object-position CSS property.

src
:
String
=
""

The source of the image.

transparent
:
Bool
=
false

Whether or not the image should have a background color.

width
:
Ui.Size
=
Ui.Size::Px(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.