TabSheet.setComment

Syntax

setComment(range: PP.Ui.TabSheetRange, comment: String);

Parameters

range. Table cells range for which the comment is defined.

comment. Comment text.

Description

The setComment method sets a comment for a table cell range.

Example

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:

TabSheet