Represents a table cell.

Example

// 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);

Hierarchy

  • Cell

Implements

Implemented by

Methods

  • Returns jQuery HTML element of the current cell.

    Returns JQuery<HTMLElement>

    Example

    // 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()[0];
    firstCell.style.backgroundColor = "blue";
  • Returns the display value of the current cell. If possible, it will be parsed.

    Parameters

    • fallbackValue: number | Date

    Returns null | string | number | string[] | Date

    Example

    // 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.

    Returns any

    Example

    // 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);