本帖最后由 Wmh20210707 于 2022-3-24 11:11 编辑
如图,数据库的数据存的是1/2,我想显示为 是/否。
但是我自定义单元格不知该如何应用。 查看api后,认为这几个方法是对我有用的。但是为何根本看不到console信息。不知下一步该如何设置了。
我重新paint了一下就可以了。sorry 我好像没有权限删帖
booleanCellType.prototype.paint = function (ctx, value, x, y, w, h, style, options) {
if (value == 1) {
SpreadNS.CustomCellType.prototype.paint.apply(this, [ctx, value + " - 是", x, y, w, h, style, options]);
}
};
|