您好,itemFormatter 是个属性方法,专门用来做自定义单元格的
- // create custom content for cells
- function itemFormatter(panel, r, c, cell) {
- debugger
- if (panel.cellType == wijmo.grid.CellType.Cell) {
- debugger
- // use chartInfo to draw a bar chart
- //var col = panel.columns[c];
- if (c == 2 && r == 2) {
- cell.innerHTML = '<div><img src="../styles/test.png" alt="/"上海鲜花港 - 郁金香"/"/></div>';
- return;
- }
- }
- }
复制代码 |