The ImageList non-visual component determines a link to a sprite (a set of images stored in the same file) and size of an image in the sprite.
The component returns the coordinates of a specific image by row and column index.
The ImageList component is used on creating the following components: ListBox, Menu.
The component is implemented by the ImageListclass.
Examples of component use are given in the IconListItem Constructor,Example of Creating the ListBox Component,ListBox.Orientation, Menu.ImageList pages.
| 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. |
| 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. |
| 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:
See also: