SMART datagrid v.1 > Classes > RowIndicator

[ grids ver.1.2.9]   Back  Forward

DataLudi.RowIndicator.stateImageList  property

在行指示器的状态单元格中,包含分别显示在各个状态的图像的图像列表名称。 

需要预先在网格中,注册将要指定的图像列表。 

默认值为null.

Getter
function stateImageList(): String
Setter
function setStateImageList(value: String)
Code -1
    // 在网格中,注册图像列表
    grid.registerImageList({
    	name: 'stateIcons',
        root: "/repo/grid/resource/images/",
    	items: [
    		'data_created.png',
    		'data_updated.png',
    		'data_deleted.png'
    	]
    });   
    // 设置图像列表,并且在各个状态的样式中,设置图像图标。
    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
状态单元格