Returns HTMLElement or jQuery HTML element of the current cell.
Optional
asNode: booleanIf true, returns a HTMLElement, otherwise a jQuery object.
// Get table
var tableCtrl = ix.api.dom.getControl("<TABLE-GUID>");
// Get all columns
var cols = tableCtrl.getCols();
// Get all cells of first column
var cells = cols[0].getCells();
// Get html element of first cell
var firstCell = cells[0].getHtml(true);
firstCell.style.backgroundColor = "blue";
Returns the display value of the current cell. If possible, it will be parsed.
// Get table
var tableCtrl = ix.api.dom.getControl("<TABLE-GUID>");
// Get all columns
var cols = tableCtrl.getCols();
// Get all cells of first column
var cells = cols[0].getCells();
// Get number value of first cell if possible
var firstCellValue = cells[0].getJsValue();
console.log(firstCellValue);
Get the display value for current record control.
// Get table
var tableCtrl = ix.api.dom.getControl("<TABLE-GUID>");
// Get all columns
var cols = tableCtrl.getCols();
// Get all cells of first column
var cells = cols[0].getCells();
// Get value of first cell
var firstCellValue = cells[0].getValue();
console.log(firstCellValue);
Represents a table cell.
Example