TabSheetModel.isSelectableCoord

Syntax

isSelectableCoord(coord: PP.Ui.TabSheetCoord);

Parameters

coord. Table cell coordinates.

Description

The isSelectableCoord method returns whether it is possible to select the cell with the specified coordinates.

Comments

This method returns True if the cell with specified coordinates can be selected, and False if it is not.

Example

To execute the example, the HTML page must contain the TabSheet component named tabSheet (see. Example of Creating the TabSheet Component).

// Get table data model
var model = tabSheet.getModel();
// Set cell coordinates
var coord = tabSheet.getCoord(1, 1);
// Make sure that the cell with the specified coordinates can be selected
if (model.isSelectableCoord(coord)) {
   console.log("Cell can be selected");
} else {
    console.log("Cell selection is prohibited");
};

After executing the example the console displays a message whether it is possible to select the cell with the specified coordinates.

See also:

TabSheetModel