Class: ImageComponent

ImageComponent(options)

ImageComponent handles the display of a single image.

Constructor

new ImageComponent(options)

Parameters:
Name Type Description
options Object see the Component options
Properties
Name Type Attributes Default Description
image string <optional>
null the URL of an image
dataField string <optional>
null the name of the field in dataObject that holds the URL to the image
Source:
Examples

Use a static URL

const component = new ImageComponent(undefined, {
	image: '/static/image.png'
})

Use a bound URL

const component = new ImageComponent(myDataModel, {
	dataField: 'image'
})

Members

imageURL :string

Type:
  • string
Source:

imageURL

Source: