Represents a table column - a collection of cell objects (Cell).

Example

// Get table
var tableCtrl = ix.api.dom.getControl("<TABLE-GUID>");
// Get all columns
var cols = tableCtrl.getCols();
console.log(cols);

// Get cells of first column
var cells = cols[0].getCells();
console.log(cells);

// Get a jQuery HTML list of all rows in the first column
var htmlCells = cols[0].getHtml();
console.log(htmlCells);

Hierarchy

  • Column

Methods

  • Returns table cells.

    Returns Cell[]

    Example

    // Get table
    var tableCtrl = ix.api.dom.getControl("<TABLE-GUID>");
    // Get all columns
    var cols = tableCtrl.getCols();
    console.log(cols);

    // Get cells of first column
    var firstColCells = cols[0].getCells();
    console.log(firstColCells);

    // Get cells of second column
    var secondColCells = cols[1].getCells();
    console.log(secondColCells);
  • Get the control type of a datarange column.

    Returns undefined | string

    Example

    // Get table
    var tableCtrl = ix.api.dom.getControl("<TABLE-GUID>");
    // Get all columns
    var cols = tableCtrl.getCols();
    console.log(cols);

    // Get control type of first column
    var fistColControlType = cols[0].getControlType();
    console.log(fistColControlType); // could return upTextVControl, upIntegerVControl and so on...
  • Return a jQuery list with all HTML column nodes of all records.

    Returns JQuery<HTMLElement>

    Example

    // Get table
    var tableCtrl = ix.api.dom.getControl("<TABLE-GUID>");
    // Get all columns
    var cols = tableCtrl.getCols();
    console.log(cols);

    // Get cells of first column
    var firstColCells = cols[0].getHtml();
    // Change background color of all cells in the first column to blue
    [...firstColCells].forEach((cell) => cell.style.backgroundColor = "blue");