セルの強調表示クラスを取得または設定します。
デフォルト値は "igx-highlight__active"
です。
let activeHighlightClass = this.cell.activeHighlightClass;
this.cell.activeHighlightClass = 'igx-cell-highlight_active';
セルのテンプレートを取得または設定します。
<ng-template #cellTemplate igxCell let-value>
<div style="font-style: oblique; color:blueviolet; background:red">
<span>{{value}}</span>
</div>
</ng-template>
@ViewChild('cellTemplate',{read: TemplateRef})
cellTemplate: TemplateRef<any>;
this.cell.cellTemplate = this.cellTemplate;
let template = this.cell.cellTemplate;
セルの列を取得します。
let cellColumn = this.cell.column;
セルが編集モードにあるかどうかを返します。
セル フォーマッタを取得します。
let cellForamatter = this.cell.formatter;
セルの強調表示クラスを取得または設定します。
デフォルト値は "igx-highlight"
です。
let highlightClass = this.cell.highlightClass;
this.cell.highlightClass = 'igx-cell-highlight';
セルの role
プロパティを取得または設定します。
デフォルト値は "gridcell"
です。
this.cell.role = 'grid-cell';
let cellRole = this.cell.role;
セルの行のデータを取得します。
let rowData = this.cell.rowData;
セル値を取得または設定します。
this.cell.value = "Cell Value";
let cellValue = this.cell.value;
セルの幅を取得します。
let cellWidth = this.cell.width;
セルの ID を取得します。
let cellID = this.cell.cellID;
セル列の index
を取得します。
let columnIndex = this.cell.columnIndex;
セルの列が選択されているかどうかを取得します。
let isCellColumnSelected = this.cell.columnSelected;
セル テンプレートのコンテキスト オブジェクトを取得します。
let context = this.cell.context();
編集モードのセルの現在の編集値を設定します。 セル編集モードのみ。
this.cell.editValue = value;
編集モードのセルの現在の編集値を取得します。 セル編集モードのみ。
let editValue = this.cell.editValue;
セルが編集可能かどうかを返します。
セルのグリッドを取得します。
let grid = this.cell.grid;
セルに配置されるグリッドの id
を取得します。
let gridId = this.cell.gridID;
セルの nativeElement への参照を返します。
let cellNativeElement = this.cell.nativeElement;
セル テンプレートを取得します。
let template = this.cell.template;
セルが編集可能かどうかを取得します。
let isCellReadonly = this.cell.readonly;
セルの行を取得します。
let cellRow = this.cell.row;
セルに配置される行の index
を取得します。
let rowIndex = this.cell.rowIndex;
セルが選択されているかどうかを取得します。
let isSelected = this.cell.selected;
セルを選択または選択解除します。
this.cell.selected = true.
セル テンプレートを取得します。
let template = this.cell.template;
セルに配置される列の表示 index
を取得します。
let visibleColumnIndex = this.cell.visibleColumnIndex;
セルに配置される列の表示 index
を取得します。
let visibleColumnIndex = this.cell.visibleColumnIndex;
セルのテキストの強調表示をクリアします。
this.cell.clearHighLight();
提供された文字列がセルのテキストと一致する場合、テキストが強調表示になります。
this.cell.highlightText('Cell Value', true);
セルの編集モードを開始または終了します。
cell.setEditMode(true);
セルに新しい値を設定します。
this.cell.update('New Value');
IgxGridCellComponent
への参照を提供します: