setComment(range: PP.Ui.TabSheetRange, comment: String);
range. Table cells range for which the comment is defined.
comment. Comment text.
The setComment method sets a comment for a table cell range.
To execute the example, the HTML page must contain the TabSheet component named tabSheet (see Example of Creating the TabSheet Component). Set a comment for the cell under coordinates (1, 1):
var coord = tabSheet.coord(1, 1); // Get a cell range by the specified coordinates var range = tabSheet.getCell(coord.rowIndex, coord.colIndex); // Set commentaries for the cells in the specified range tabSheet.setComment(range, coord.toString());
After executing the example a comment that contains cell coordinates: 1_1 is set for the cell:

See also: