ImageElement

ImageElement

ImageElement is a virtual Image element. The src property supports a Croquet Data API handle, in addition to the regular string.

Members

# src :string|Object

Note that this is not a property of the object, but accessed via _set() and _get(). If the element has src in the property dictionary (set using _set()), the native element's src is updated. If the value is a string, it is simply assigned. If it is a Croquet Data API handle, the data is fetched via the API, and the blob created from the data is assigned into the src attribute.

Type:
  • string | Object