Namespace: PP;
ImageList
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.
PP.initClass(PP.ImageList, PP.Object, "ImageList");
| Constructor name | Brief description | |
| ImageList | The ImageList constructor creates an instance of the ImageList component. |
| 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. |
| 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. |
| 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. |
| Property name | Brief description | |
![]() |
The Id property determines a repository object identifier. |
| Method name | Brief description | |
![]() |
clone | The clone method creates an object copy. |
![]() |
dispose | The dispose method deletes the component. |
![]() |
getHashCode | The getHashCode method returns hash code of repository object. |
![]() |
getId | The getId method returns repository object identifier. |
![]() |
getSettings | The getSettings method returns repository object settings. |
![]() |
getTypeName | The getTypeName method returns the name of the object type without the namespace, to which it belongs. |
![]() |
isEqual | The isEqual method determines whether the specified object is equal to the current repository object. |
![]() |
isLive | The isLive method determines validity of repository object. |
![]() |
removeAllEvents | The removeAllEvents method removes all object event handlers by the specified context. |
![]() |
setId | The setId method determines a repository object identifier. |
![]() |
setSettings | The setSettings method determines repository object settings. |
![]() |
defineProps | The defineProps method creates get and set methods from name array for the specified class. |
![]() |
keys | The keys method returns array of methods and properties names for the specified object. |
See also: