projects/wms-framework/src/lib/models/controls/CellBase.ts
CellBase class
Properties |
Methods |
Accessors |
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 |
Refresh |
Refresh()
|
Refresh current cell
Returns :
void
|
IsActive | ||||||
getIsActive()
|
||||||
Gets or sets the current cell as the active cell in the grid
Returns :
boolean
|
||||||
setIsActive(value: boolean)
|
||||||
Parameters :
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');
}
}