File

projects/wms-framework/src/lib/models/controls/CellBase.ts

Description

CellBase class

Index

Properties
Methods
Accessors

Properties

Column
Type : XamGridColumnModel
Default value : null

Column of this cell

Control
Type : any
Default value : null

Cell control

Row
Type : RowBase
Default value : null

Cell row

Methods

Refresh
Refresh()

Refresh current cell

Returns : void

Accessors

IsActive
getIsActive()

Gets or sets the current cell as the active cell in the grid

Returns : boolean
setIsActive(value: boolean)
Parameters :
Name Type Optional
value boolean No
Returns : void
import { Debugger } from '../../diagnostics/Debugger';
import { RowBase } from './RowBase';
import { XamGridColumnModel } from './XamGridColumnModel';

/**
 * CellBase class
 *
 * @export
 * @class CellBase
 * @wType Infragistics.Controls.Grids.CellBase
 */
export class CellBase {
  /**
   * Cell control
   *
   * @type {any}
   * @memberof CellBase
   */
  Control: any = null;

  /**
   * Cell row
   *
   * @type {XamGridRow}
   * @memberof CellBase
   */
  Row: RowBase = null;

  /**
   * Gets or sets the current cell as the active cell in the grid
   *
   * @type {boolean}
   * @memberof CellBase
   */
  get IsActive(): boolean {
    return this.Row.ColumnLayout.Grid.ActiveCell == this;
  }

  set IsActive(value: boolean) {
    if (value) {
      this.Row.ColumnLayout.Grid.ActiveCell = this;
    } else {
      this.Row.ColumnLayout.Grid.ActiveCell = null;
      this.Row.ColumnLayout.Grid.gridComponentInstance?.cleanActiveFromIgxGrid?.();
    }
  }

  /**
   *  Column of this cell
   *
   * @type {XamGridColumnModel}
   * @memberof CellBase
   */
  Column: XamGridColumnModel = null;

  /**
   * Refresh current cell
   *
   * @memberof XamGridCell
   * @wNoMap
   */
  Refresh() {
    Debugger.Throw('Not implemented');
  }
}

result-matching ""

    No results matching ""