Class: Image

html.Image

Class representing an image.

new html.Image ()

Properties:
Name Type Description
fitMode string

(default: "fill") The mode for fitting the original image into this element. One of: fill|contain|cover|scale-down|none

originalWidth number

[readonly] The original width of the image.

originalHeight number

[readonly] The original height of the image.

source string

The image source URL.

status string

[readonly] The current status. One of: empty|loading|error|success

Extends