Skip to content

Commit 49b7600

Browse files
996221: Added UG content for the threaded comment feature.
1 parent c3a6ede commit 49b7600

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed

Document-Processing/Excel/Spreadsheet/Javascript-ES6/comment.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ The Syncfusion Spreadsheet does not automatically track user identity. To tag ne
2222
import { Spreadsheet } from '@syncfusion/ej2-spreadsheet';
2323
// Initialize Spreadsheet component
2424
const spreadsheet: Spreadsheet = new Spreadsheet(
25-
// Assign the author property
25+
// Set the author name, If not set, "Guest User" will be shown as the author by default.
2626
author: 'Place the Author Name Here'
2727
);
2828
// Render initialized Spreadsheet
@@ -45,7 +45,7 @@ You can add a **comment** to a cell in the following ways:
4545

4646
```ts
4747

48-
// Create a comment in the desired cell
48+
// Create a comment at the target cell using updateCell
4949
spreadsheet.updateCell({
5050
comment: {
5151
author: 'Chistoper', text: 'Are you completed the report',

Document-Processing/code-snippet/spreadsheet/javascript-es6/comemnt-cs1/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ var sheets = [{
44
name: 'Shipment Details',
55
ranges: [{ dataSource: shipmentData }],
66
columns: [{ width: 80 }, { width: 130 }, { width: 150 }, { width: 100 }, { width: 100 }],
7+
// Attach comment to the specific cells
78
rows: [{
89
index: 1, cells: [{
910
index: 4, comment: {
@@ -70,14 +71,13 @@ var sheets = [{
7071
}];
7172

7273
var spreadsheet = new ej.spreadsheet.Spreadsheet({
73-
// To show the comments review pane on initial rendering.
74-
showCommentsPane: true,
74+
showCommentsPane: true, // Show the comments review pane on initial rendering
7575
openUrl: 'https://document.syncfusion.com/web-services/spreadsheet-editor/api/spreadsheet/open',
7676
saveUrl: 'https://document.syncfusion.com/web-services/spreadsheet-editor/api/spreadsheet/save',
7777
sheets: sheets,
7878
created: function () {
7979
spreadsheet.cellFormat({ fontWeight: 'bold', textAlign: 'center' }, 'Shipment Details!A1:F1');
80-
// Added comment using the updateCell method.
80+
// Add comment using updateCell.
8181
spreadsheet.updateCell({
8282
comment: {
8383
author: 'Cristi Espinos', text: 'Validate customer name for Order 10249.', createdTime: 'November 18, 2025 at 4:00 PM',
@@ -100,6 +100,6 @@ var spreadsheet = new ej.spreadsheet.Spreadsheet({
100100
}, 'Shipment Details!D9');
101101
}
102102
});
103-
103+
// Render the Spreadsheet
104104
spreadsheet.appendTo('#spreadsheet');
105105

Document-Processing/code-snippet/spreadsheet/javascript-es6/comemnt-cs1/index.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { Spreadsheet, SheetModel } from '@syncfusion/ej2-spreadsheet';
22
import { shipmentData } from './datasource.ts';
33

4-
// Added comments using the cell data binding
54
let sheets: SheetModel[] = [{
65
name: 'Shipment Details',
76
ranges: [{ dataSource: shipmentData }],
87
columns: [{ width: 80 }, { width: 130 }, { width: 150 }, { width: 100 }, { width: 100 }],
8+
// Attach comment to the specific cells
99
rows: [{
1010
index: 1, cells: [{
1111
index: 4, comment: {
@@ -72,14 +72,13 @@ let sheets: SheetModel[] = [{
7272
}];
7373

7474
let spreadsheet: Spreadsheet = new Spreadsheet({
75-
// To show the comments review pane on initial rendering.
76-
showCommentsPane: true,
75+
showCommentsPane: true, // Show the comments review pane on initial rendering
7776
openUrl: 'https://document.syncfusion.com/web-services/spreadsheet-editor/api/spreadsheet/open',
7877
saveUrl: 'https://document.syncfusion.com/web-services/spreadsheet-editor/api/spreadsheet/save',
7978
sheets: sheets,
8079
created: (): void => {
8180
spreadsheet.cellFormat({ fontWeight: 'bold', textAlign: 'center' }, 'Shipment Details!A1:F1');
82-
// Added comment using the updateCell method.
81+
// Add comment using updateCell.
8382
spreadsheet.updateCell({
8483
comment: {
8584
author: 'Cristi Espinos', text: 'Validate customer name for Order 10249.', createdTime: 'November 18, 2025 at 4:00 PM',
@@ -102,5 +101,5 @@ let spreadsheet: Spreadsheet = new Spreadsheet({
102101
}, 'Shipment Details!D9');
103102
}
104103
});
105-
104+
// Render the Spreadsheet
106105
spreadsheet.appendTo('#spreadsheet');

0 commit comments

Comments
 (0)