Class minplayer.image
A class to easily handle images.
Defined in: minplayer.image.js.
Constructor Attributes | Constructor Name and Description |
---|---|
minplayer.image(context, options)
|
Field Attributes | Field Name and Description |
---|---|
Reset the constructor.
|
|
The loader for the image.
|
Method Attributes | Method Name and Description |
---|---|
clear(callback)
Clears an image.
|
|
load(src)
Loads an image.
|
|
onResize()
|
|
resize(width, height)
Resize the image provided a width and height or nothing.
|
Class Detail
minplayer.image(context, options)
- Parameters:
- {object} context
- The jQuery context.
- {object} options
- This components options.
Field Detail
constructor
Reset the constructor.
loader
The loader for the image.
Method Detail
clear(callback)
Clears an image.
- Parameters:
- {function} callback
- Called when the image is done clearing.
construct()
- See:
- minplayer.plugin.construct
load(src)
Loads an image.
- Parameters:
- {string} src
- The source of the image to load.
onResize()
resize(width, height)
Resize the image provided a width and height or nothing.
- Parameters:
- {integer} width
- (optional) The width of the container.
- {integer} height
- (optional) The height of the container.