getIsCellActivated();
The getIsCellActivated method checks if any of the table cells is active.
This method returns True if a table cell is active, otherwise it returns False.
To execute the example, the HTML page must contain the TabSheet component named tabSheet (see Example of Creating the TabSheet Component). Check if the cell under coordinates (1, 1) is active before and during its editing:
// Get selection object var objSelection = tabSheet.getSelection(); // Select the cell objSelection.select(tabSheet.getRange(1, 1, 1, 1), False, tabSheet.coord(1, 1)); // Check if table cells are active console.log("Active cell " + (objSelection.getIsCellActivated() ? " is in the table.": "is not in the table.")); // Start cell editing tabSheet.edit(objSelection.getRange().getCorners().tlCoord); // Recheck if table cells are active console.log("On table editing the active cell " + (objSelection.getIsCellActivated() ? "is in the table.": "is not in the table."));
After executing the example we get that the table does not contain active cells before and after the value is edited:
There is no active cell in the table.
There is no active cell in the table during value editing.
See also: