SMART datagrid v.1 > Classes > RowIndicator
在行指示器的状态单元格中,包含分别显示在各个状态的图像的图像列表名称。
需要预先在网格中,注册将要指定的图像列表。
默认值为null.
// 在网格中,注册图像列表
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'
}
});