:: Documentation >>

top image

Sets or retrieves the image in the top-left corner of the grid (top selector icon). The image name should be defined in the stylesheet and linked to the actual image file with the css rules.

See how to include additional images in your stylesheet.

Syntax

var value = obj.getTopImage(); 
obj.setTopImage(value);        

obj.onTopImageChanging = function(value){...}; 
obj.onTopImageChanged = function(value){...}; 
obj.onTopImageError = function(value){...}; 

Defined in

top model

Examples

obj.setTopText("top text"); 
obj.setTopImage("favorites"); // top selector image
obj.setTopTooltip("tooltip text");

See also

Overview: using images
Grid templates: top selector
Top model: text, tooltip, link, value, data, format
Image properties: cell, selector, header, footer, bottom

Comments

Documentation:

Recent changes:

2.6.4
2.6.3
2.6.2
2.6.1
2.6.1
2.6.0
2.5.0 - 2.5.6
2.5.6
2.5.0 - 2.5.5
2.5.5