如果对某一个单元设置了数据绑定路径,大略代码如下:
- function BindingPathCellType() {
- $.wijmo.wijspread.TextCellType.call(this);
- }
- BindingPathCellType.prototype = new $.wijmo.wijspread.TextCellType();
- BindingPathCellType.prototype.paint = function (ctx, value, x, y, w, h, style, context) {
- if (value === null || value === undefined) {
- var sheet = context.sheet, row = context.row, col = context.col;
- if (sheet && (row === 0 || !!row) && (col === 0 || !!col)) {
- var bindingPath = sheet.getBindingPath(context.row, context.col);
- if (bindingPath) {
- value = "[" + bindingPath + "]";
- }
- }
- }
- $.wijmo.wijspread.TextCellType.prototype.paint.apply(this, arguments);
- };
- var bindingPathCellType = new BindingPathCellType();
- sheet.getCell(5, 0).bindingPath("name").cellType(bindingPathCellType).vAlign($.wijmo.wijspread.VerticalAlign.bottom);
复制代码
然后,在拖拉填充进行单元格复制时,会把第一个单元格的bindingpath、tag一起复制了。
请问,speadjs有没有相关的选项参数可以设定复制/填充时,避免把bindingpath、tag一起复制?
谢谢
|