|
methods: {
cellSave: function(args) {
var range = args.address.split("!")[1];
console.log("range:" + range);
var celladdress = getRangeIndexes(range);
console.log(celladdress);
}
} |
this.XLEdit.updateCellValue({ rowIndex: 1, colIndex: 1 },"Update Cell Value");
|
created: function(args) {
var spreadsheet = this.$refs.spreadsheet;
spreadsheet.updateCell({ value: 'My Value' }, "A3");
} |
|
Cell Model Properties |
Description |
|
value: string; |
Defines the value of the cell which can be text or number. |
|
formula: string |
Defines the formula or expression of the cell. |
|
index: number; |
Specifies the index of the cell. |
|
format: string; |
Specifies the number format code to display value in specified number format. |
|
hyperlink: string | HyperlinkModel; |
Specifies the hyperlink of the cell. |
|
wrap: boolean; |
Wraps the cell text to the next line, if the text width exceeds the column width. |
|
isLocked: boolean; |
Specifies the cell is locked or not, for allow edit range in spreadsheet protect option. |
|
validation: ValidationModel; |
Specifies the validation of the cell. |
|
colSpan: number; |
Specifies the column-wise cell merge count. |
|
rowSpan: number; |
Specifies the row-wise cell merge count. |