ImageList
Namespace: PP;
Inheritance hierarchy
Object
ImageList
Description
The ImageList class implements the ImageListnon-visual component, which contains a link to the sprite (or a set of images in one file) and image size in the sprite.
Syntax
PP.initClass(PP.ImageList, PP.Object, "ImageList");
Constructor
|
Constructor name |
Brief description |
|
ImageList |
The ImageList constructor creates an instance of the ImageList component. |
Properties
|
Property name |
Brief description |
|
IconHeight |
The IconHeight property sets icon height. |
|
IconWidth |
The IconWidth property sets icon width. |
|
IsRetinaAvailable |
The IsRetinaAvailable property returns whether it is possible to work on a device with retina display. |
|
Source |
The Source property determines the path to the icons set. |
Methods
|
Method name |
Brief description |
|
applyToBackground |
The applyToBackground method sets the specified sprite image as a DOM element background. |
|
applyToCanvas |
The applyToCanvas method renders the loaded image on the canvas. |
|
getIcon |
The getIcon method returns icon by column or row index of list. |
|
getLeft |
The getLeft method returns horizontal offset. |
|
getTop |
The getTop method returns vertical offset. |
|
isImageLoaded |
The isImageLoaded method returns image loading status. |
|
loadImage |
The loadImage method loads an image for further rendering on the canvas. |
Events
|
Event name |
Brief description |
|
ImageLoaded |
The ImageLoaded event occurs after an image is loaded. |
|
ImageLoading |
The ImageLoading event occurs at the beginning of image loading. |
Properties inherited from the Object class
|
Property name |
Brief description |
|
Data |
The Data property associates a random object with this component. |
|
Id |
The Id property sets component identifier. |
|
Settings |
The Settings property sets the component parameters. |
Methods inherited from the Object class
|
Method name |
Brief description |
|
clone |
The clone method creates a copy of object. It is not implemented in PP.Ui.Control. |
|
dispose |
The dispose method deletes the component. |
|
getTypeName |
The getTypeName method returns the name of the object type without the namespace, to which it belongs. |
See also:
PP