SMART datagrid v.1 > Classes > RowIndicator

[ grids ver.1.2.9]   Back  Forward

DataLudi.RowIndicator.stateImageList  property

The name of Image List which contains the images displayed in each state in state cell of RowIndicator. 

You should Register the specified image list in grid in advance. 

Defaults to null.

Getter
function stateImageList(): String
Setter
function setStateImageList(value: String)
Code -1
    // Register image list in grid,
    grid.registerImageList({
    	name: 'stateIcons',
        root: "/repo/grid/resource/images/",
    	items: [
    		'data_created.png',
    		'data_updated.png',
    		'data_deleted.png'
    	]
    });   
    // Set image list, and set image icon in style of each state.
    grdMain.setRowIndicator({
        stateImageList: "stateIcons",
        createdStyles: {
            iconIndex: '0'
        },
        updatedStyles: {
            iconIndex: '1'
        },
        deletedStyles: {
            iconIndex: '2'
        }
    });    
See Also
stateStyles
createdStyles
deletedStyles
updatedStyles
createdLabel
deletedLabel
updatedLabel
GridBase.registerImageList
Examples
State Cells