アクティブなノードが変更されたときに発生します。
<igx-grid [data]="data" [autoGenerate]="true" (activeNodeChange)="activeNodeChange($event)"></igx-grid>
高度フィルタリングが実行された後に発生されます。
高度フィルタリング式ツリーを返します。
<igx-grid #grid [data]="localData" [height]="'305px'" [autoGenerate]="true"
(advancedFilteringExpressionsTreeChange)="advancedFilteringExprTreeChange($event)"></igx-grid>
Readonly
cdrセルがクリックされたときに発生します。
IgxGridCell
を返します。
<igx-grid #grid (cellClick)="cellClick($event)" [data]="localData" [height]="'305px'" [autoGenerate]="true"></igx-grid>
グリッドのコピー動作を制御します。
Apply the columns formatters (if any) on the data in the clipboard output.
Include the columns headers in the clipboard output.
Enables/disables the copy behavior
The separator used for formatting the copy output. Defaults to \t
.
列が初期化されるときに発生します。
列オブジェクトを返します。
<igx-grid #grid [data]="localData" (columnInit)="initColumns($event)" [autoGenerate]="true"></igx-grid>
列がサイズ変更されたときに発生されます。
IgxColumnComponent
オブジェクトの古い幅および新しい幅を返します。
<igx-grid #grid [data]="localData" (columnResized)="resizing($event)" [autoGenerate]="true"></igx-grid>
IgxColumnComponent
が選択されたときに発生します。
<igx-grid #grid (columnSelectionChanging)="columnSelectionChanging($event)" [data]="localData" [autoGenerate]="true"></igx-grid>
列の表示状態を変更するときに発生されます。
引数: { column: IgxColumnComponent, newValue: boolean }
<igx-grid (columnVisibilityChanged)="visibilityChanged($event)"></igx-grid>
列の表示状態を変更する前に発生されます。
引数: { column: any, newValue: boolean }
<igx-grid (columnVisibilityChanging)="visibilityChanging($event)"></igx-grid>
セルが右クリックされたときに発生されます。
IgxGridCell
オブジェクトを返します。
<igx-grid #grid [data]="localData" (contextMenu)="contextMenu($event)" [autoGenerate]="true"></igx-grid>
データ操作や再バインドなどにより、グリッドのデータ ビューが変更される後に発生されます。
<igx-grid #grid [data]="localData" [autoGenerate]="true" (dataChanged)='handleDataChangedEvent()'></igx-grid>
データ操作や再バインドなどにより、グリッドのデータ ビューが変更される前に発生されます。
<igx-grid #grid [data]="localData" [autoGenerate]="true" (dataChanging)='handleDataChangingEvent()'></igx-grid>
ディメンションが初期化されるときに発生します。
初期化されようとしているディメンションを発生します。
<igx-pivot-grid #grid [data]="localData" [height]="'305px'"
(dimensionInit)="dimensionInit($event)"></igx-pivot-grid>
グリッド チップ領域によってディメンション コレクションが変更されたときに発生します。
新しいディメンション コレクションとそのタイプを返します。
<igx-pivot-grid #grid [data]="localData" [height]="'305px'"
(dimensionsChange)="dimensionsChange($event)"></igx-grid>
ディメンションがソートされたときに発生します。
<igx-pivot-grid #grid [data]="localData" [height]="'305px'"
(dimensionsSortingExpressionsChange)="dimensionsSortingExpressionsChange($event)"></igx-pivot-grid>
セルがダブルクリックされたときに発生されます。
IgxGridCell
オブジェクトを返します。
<igx-grid #grid [data]="localData" (doubleClick)="dblClick($event)" [autoGenerate]="true"></igx-grid>
空の場合のカスタム テンプレートを取得または設定します。
<igx-grid [id]="'igx-grid-1'" [data]="Data" [emptyGridTemplate]="myTemplate" [autoGenerate]="true"></igx-grid>
ピボット グリッドが空の場合にカスタム テンプレートを取得または設定します。
<igx-pivot-grid [emptyPivotGridTemplate]="myTemplate"><igx-pivot-grid>
フィルタリング式が適用される前に発生されます。
IFilteringEventArgs
オブジェクトを返します。filteringExpressions
キーは、列のフィルタリング式を保持します。
<igx-grid #grid [data]="localData" [height]="'305px'" [autoGenerate]="true" (filtering)="filtering($event)"></igx-grid>
フィルタリングが UI で実行されたときに発生されます。
フィルターされた列のフィルタリング式ツリーを返します。
<igx-grid #grid [data]="localData" [height]="'305px'" [autoGenerate]="true" (filteringDone)="filteringDone($event)"></igx-grid>
フィルタリングが実行された後に発生されます。
フィルターされた列のフィルタリング式ツリーを返します。
<igx-grid #grid [data]="localData" [height]="'305px'" [autoGenerate]="true"
(filteringExpressionsTreeChange)="filteringExprTreeChange($event)"></igx-grid>
行/セルの編集で formGroup が作成されたときに発生します。
<igx-grid #grid (formGroupCreated)="formGroupCreated($event)" [data]="localData" [height]="'305px'" [autoGenerate]="true"></igx-grid>
Readonly
gridAPIコピー操作が実行されたときに発生します。
[clipboardOptions
]IgxGridBaseDirective#clipboardOptions でコピー動作が有効になっている場合にのみ発生します。
グリッドの内の要素に対してキーダウンがトリガーされたときに発生します。
このイベントは、グリッドでキーの組み合わせがサポートされている場合にのみ発生します。 ターゲット タイプ、ターゲット オブジェクト、および元のイベントを返します。このイベントはキャンセルできます。
<igx-grid (gridKeydown)="customKeydown($event)"></igx-grid>
グリッドが水平/垂直にスクロールされるときに発生します。
<igx-grid #grid [data]="localData" [height]="'305px'" [autoGenerate]="true"
(gridScroll)="onScroll($event)"></igx-grid>
読み込み時のカスタム テンプレートを取得または設定します。
<igx-grid [id]="'igx-grid-1'" [data]="Data" [loadingGridTemplate]="myTemplate" [autoGenerate]="true"></igx-grid>
pivotConfiguration プロパティのいずれかがグリッド チップ領域を介して変更されたときに発生します。
<igx-pivot-grid #grid [data]="localData" [height]="'305px'"
(pivotConfigurationChanged)="configurationChanged($event)"></igx-grid>
プライマリ キーを取得または設定します。
<igx-grid #grid [data]="localData" [primaryKey]="'ProductID'" [autoGenerate]="true"></igx-grid>
範囲選択を行ったときに発生します。
範囲選択がドラッグ選択またはキーボード選択による行います。
ngAfterViewInit の後に発生します。この時点で、グリッドは DOM に存在します。
グリッドの行要素に条件付きクラス セレクターを設定します。 キーと値のペアを含むオブジェクト リテラルを受け取ります。 キーは CSS クラスの名前です。 値はブール値を返すコールバック関数またはブール値です。例:
callback = (row: RowType) => { return row.selected > 6; }
rowClasses = { 'className' : this.callback };
<igx-grid #grid [data]="Data" [rowClasses] = "rowClasses" [autoGenerate]="true"></igx-grid>
IgxColumnComponent
IgxGridRowComponent
が選択されたときに発生します。
<igx-grid #grid (rowSelectionChanging)="rowSelectionChanging($event)" [data]="localData" [autoGenerate]="true"></igx-grid>
グリッドの行要素に条件付きスタイル プロパティを設定します。 キーがスタイル プロパティであり、 値が評価用の式であるオブジェクト リテラルを受け入れます。
styles = {
background: 'yellow',
color: (row: RowType) => row.selected : 'red': 'white'
}
<igx-grid #grid [data]="Data" [rowStyles]="styles" [autoGenerate]="true"></igx-grid>
IgxColumnComponent
行の展開状態が変更されているときに呼び出されます。
<igx-grid [data]="employeeData" (rowToggle)="rowToggle($event)" [autoGenerate]="true"></igx-grid>
セルが選択されたときに発生します。
IgxGridCell
を返します。
<igx-grid #grid (selected)="onCellSelect($event)" [data]="localData" [height]="'305px'" [autoGenerate]="true"></igx-grid>
ソート式が適用される前に発生されます。
ISortingEventArgs
オブジェクトを返します。sortingExpressions
キーは、ソート式を保持します。
<igx-grid #grid [data]="localData" [autoGenerate]="true" (sorting)="sorting($event)"></igx-grid>
ソートが UI で実行されたときに発生されます。
ソート式を返します。
<igx-grid #grid [data]="localData" [autoGenerate]="true" (sortingDone)="sortingDone($event)"></igx-grid>
ソートが実行された前に発生されます。
ソート式を返します。
<igx-grid #grid [data]="localData" [autoGenerate]="true" (sortingExpressionsChange)="sortingExprChange($event)"></igx-grid>
Gets/Sets a unique values strategy used by the Excel Style Filtering
Provides a callback for loading unique column values on demand. If this property is provided, the unique values it generates will be used by the Excel Style Filtering.
<igx-grid [data]="localData" [filterMode]="'excelStyleFilter'" [uniqueColumnValuesStrategy]="columnValuesStrategy"></igx-grid>
Readonly
validationグリッドの検証状態が変更されたときに発生します。
<igx-grid #grid (validationStatusChange)="validationStatusChange($event)" [data]="localData" [height]="'305px'" [autoGenerate]="true"></igx-grid>
リッドの編集時に使用される検証のトリガーを取得または設定します。
<igx-grid #grid validationTrigger='blur'></igx-grid>
valueChip のカスタム テンプレートを取得または設定します。
<igx-pivot-grid [valueChipTemplate]="myTemplate"><igx-pivot-grid>
値が初期化されるときに発生します。
初期化されようとしている値を発生します。
<igx-pivot-grid #grid [data]="localData" [height]="'305px'"
(valueInit)="valueInit($event)"></igx-pivot-grid>
値コレクションがグリッド チップ領域によって変更されたときに発生します。
新しいディメンションを返します。
<igx-pivot-grid #grid [data]="localData" [height]="'305px'"
(valuesChange)="valuesChange($event)"></igx-grid>
高度なフィルタリング状態を取得または設定します。
let advancedFilteringExpressionsTree = this.grid.advancedFilteringExpressionsTree;
this.grid.advancedFilteringExpressionsTree = logic;
ディメンションの完全なリストを取得します。
const dimensions = this.grid.allDimensions;
セル選択モードを取得または設定します。
デフォルトでは、セル選択モードは multiple です。
行選択モードを取得または設定します。
デフォルトでは、行選択モードは none です。
列のデフォルトの幅を取得または設定します。
<igx-grid #grid [data]="localData" [columnWidth]="100" [autoGenerate]="true"></igx-grid>
IgxColumnComponent
の配列を取得します。
const colums = this.grid.columns.
コンポーネントにデータ セットの配列を返します。
let data = this.grid.data;
IgxPivotGridComponent
にデータの配列をインポートする @Input プロパティ。
<igx-pivot-grid [data]="Data"></igx-pivot-grid>
編集モードのときにグリッドのデータ クローン ストラテジを取得または設定します。
<igx-grid #grid [data]="localData" [dataCloneStrategy]="customCloneStrategy"></igx-grid>
現在描画されている IgxGridRowComponent
のリスト。
const dataList = this.grid.dataRowList;
グリッドに現在表示されている、ページング/フィルター/ソート/グループ化/固定解除が適用された行データを返します。
const dataView = this.grid.dataView;
すべての行のデフォルト展開状態を取得または設定します。
IgxGridHeaderGroupComponent
の最小許容幅を返します。
ヘッダー グループ コンポーネントの幅を制限するために内部で使用されます。 以下の値は、ヘッダーセルのデフォルトの右/左パディング値に基づいています。
デフォルトの行の高さを取得します。
const rowHeigh = this.grid.defaultRowHeight;
ディメンションに対して生成されたソート式を取得します。
const expressions = this.grid.dimensionsSortingExpressions;
コンポーネントのテーマを返します。
デフォルトのテーマは comfortable
です。
利用可能なオプションは comfortable
、cosy
、または compact
です。
superCompactMode が有効なときに設定した場合、効果はありません。
let componentTheme = this.component.displayDensity;
コンポーネントのテーマを設定します。
行ドラッグ ゴーストに使用されるカスタム テンプレートを取得します (存在する場合)。
行ドラッグ ゴーストのカスタム テンプレートを設定します。
<ng-template #template igxRowDragGhost>
<igx-icon>menu</igx-icon>
</ng-template>
@ViewChild("'template'", {read: TemplateRef })
public template: TemplateRef<any>;
this.grid.dragGhostCustomTemplate = this.template;
グリッドがフィルターされ、レコードがない場合に表示されるメッセージを取得または設定します。
<igx-grid #grid [data]="Data" [emptyGridMessage]="'The grid is empty'" [autoGenerate]="true"></igx-grid>
レコードがない場合に表示されるメッセージを取得または設定します。
<igx-grid #grid [data]="Data" [emptyGridMessage]="'The grid is empty'" [autoGenerate]="true"></igx-grid>
Excel スタイルのヘッダー アイコンを取得します。
Excel スタイルのヘッダー アイコンを設定します。
<ng-template #template igxExcelStyleHeaderIcon>
<igx-icon>filter_alt</igx-icon>
</ng-template>
@ViewChild('template', {read: TemplateRef })
public template: TemplateRef<any>;
this.grid.excelStyleHeaderIconTemplate = this.template;
キーと値のペア [行 Id、展開状態] のリストを取得または設定します。
デフォルト状態に異なる状態のみ含まれます。 双方向バインディングをサポートします。
<igx-grid #grid [data]="data" [(expansionStates)]="model.expansionStates">
</igx-grid>
グリッドのフィルタリング ストラテジを取得または設定します。
<igx-grid #grid [data]="localData" [filterStrategy]="filterStrategy"></igx-grid>
フィルターされたデータを含むオブジェクトの配列を返します。
let filteredData = this.grid.filteredData;
フィルターされてソート済みのデータを含む配列を返します。
const filteredSortedData = this.grid1.filteredSortedData;
フィルタリング状態を取得または設定します。
<igx-grid #grid [data]="Data" [autoGenerate]="true" [(filteringExpressionsTree)]="model.filteringExpressions"></igx-grid>
双方向バインディングをサポートします。
IgxGridComponent
のフィルター ロジックを設定します。
デフォルト値は AND です。
<igx-grid [data]="Data" [autoGenerate]="true" [filteringLogic]="filtering"></igx-grid>
ヘッダー行セレクター テンプレートを取得します。
ヘッダー行セレクター テンプレートを設定します。
<ng-template #template igxHeadSelector let-headContext>
{{ headContext.selectedCount }} / {{ headContext.totalCount }}
</ng-template>
@ViewChild("'template'", {read: TemplateRef })
public template: TemplateRef<any>;
this.grid.headSelectorTemplate = this.template;
行縮小インジケーターのテンプレートを取得します。
行縮小インジケーターのテンプレートを設定します。
<ng-template igxHeaderCollapsedIndicator>
<igx-icon role="button">add</igx-icon>
</ng-template>
@ViewChild('template', {read: TemplateRef })
public template: TemplateRef<any>;
this.grid.headerCollapsedIndicatorTemplate = this.template;
ヘッダー展開インジケーター テンプレートを取得します。
ヘッダー展開インジケーター テンプレートを設定します。
<ng-template igxHeaderExpandedIndicator>
<igx-icon role="button">remove</igx-icon>
</ng-template>
@ViewChild('template', {read: TemplateRef })
public template: TemplateRef<any>;
this.grid.headerExpandedIndicatorTemplate = this.template;
高さを取得または設定します。
<igx-grid #grid [data]="Data" [height]="'305px'" [autoGenerate]="true"></igx-grid>
id
属性の値を取得または設定します。
提供されていない場合は、自動的に生成されます。
<igx-pivot-grid [id]="'igx-pivot-1'" [data]="Data"></igx-pivot-grid>
グリッドは読み込みインジケータを表すかどうかを取得または設定します。
<igx-grid #grid [data]="Data" [isLoading]="true" [autoGenerate]="true"></igx-grid>
ロケールを取得または設定します。
設定されていない場合、ブラウザーの言語設定を返します。
ネイティブ要素を取得します。
const nativeEl = this.grid.nativeElement.
グリッドのオーバーレイをアタッチするアウトレットを取得または設定します。
設定されている場合、グリッドの外側で定義されたアウトレットを返します。それ以外の場合、グリッド内部のアウトレット ディレクティブを返します。
リソース文字列を取得/設定します。
デフォルトで EN リソースを使用します。
行追加テキスト テンプレートを取得します。
行追加テキスト テンプレートを設定します。
<ng-template #template igxRowAddText>
Adding Row
</ng-template>
@ViewChild('template', {read: TemplateRef })
public template: TemplateRef<any>;
this.grid.rowAddTextTemplate = this.template;
行縮小インジケーターのテンプレートを取得します。
行縮小インジケーターのテンプレートを設定します。
<ng-template igxRowCollapsedIndicator>
<igx-icon role="button">add</igx-icon>
</ng-template>
@ViewChild('template', {read: TemplateRef })
public template: TemplateRef<any>;
this.grid.rowCollapsedIndicatorTemplate = this.template;
行編集の動作テンプレートを取得します。
行編集の動作テンプレートを設定します。
<ng-template #template igxRowEditActions let-endRowEdit>
<button igxButton igxRowEditTabStop (click)="endRowEdit(false)">Cancel</button>
<button igxButton igxRowEditTabStop (click)="endRowEdit(true)">Apply</button>
</ng-template>
@ViewChild('template', {read: TemplateRef })
public template: TemplateRef<any>;
this.grid.rowEditActionsTemplate = this.template;
行編集テキスト テンプレートを取得します。
行編集テキスト テンプレートを設定します。
<ng-template #template igxRowEditText let-rowChangesCount>
Changes: {{rowChangesCount}}
</ng-template>
@ViewChild('template', {read: TemplateRef })
public template: TemplateRef<any>;
this.grid.rowEditTextTemplate = this.template;
行展開インジケーターのテンプレートを取得します。
行展開インジケーターのテンプレートを設定します。
<ng-template igxRowExpandedIndicator>
<igx-icon role="button">remove</igx-icon>
</ng-template>
@ViewChild('template', {read: TemplateRef })
public template: TemplateRef<any>;
this.grid.rowExpandedIndicatorTemplate = this.template;
行の高さを取得または設定します。
<igx-grid #grid [data]="localData" [rowHeight]="100" [autoGenerate]="true"></igx-grid>
すべての IgxGridRowComponent
のリスト。
const rowList = this.grid.rowList;
行選択モードを取得または設定します。
デフォルトでは、行選択モードは 'none' です。 注: IgxGrid および IgxHierarchicalGrid では、'multipleCascade' は 'multiple' のように動作します。
行セレクター テンプレートを取得します。
行セレクターのカスタム テンプレートを設定します。
<ng-template #template igxRowSelector let-rowContext>
<igx-checkbox [checked]="rowContext.selected"></igx-checkbox>
</ng-template>
@ViewChild("'template'", {read: TemplateRef })
public template: TemplateRef<any>;
this.grid.rowSelectorTemplate = this.template;
行をクリックして選択/選択解除するかどうかを取得/設定します。
デフォルトで true に設定されます。
列が昇順でソートされている場合にヘッダー ソート インジケーターを描画するときに使用するカスタムテンプレート (存在する場合)。
列が昇順でソートされている場合に、ヘッダーのソート インジケーターを描画するときに使用するカスタム テンプレートを設定します。
<ng-template #template igxSortAscendingHeaderIcon>
<igx-icon>expand_less</igx-icon>
</ng-template>
@ViewChild("'template'", {read: TemplateRef })
public template: TemplateRef<any>;
this.grid.sortAscendingHeaderIconTemplate = this.template;
列が降順でソートされている場合にヘッダー ソート インジケーターを描画するときに使用するカスタムテンプレート (存在する場合)。
列が降順でソートされている場合に、ヘッダーのソート インジケーターを描画するときに使用するカスタム テンプレートを設定します。
<ng-template #template igxSortDescendingHeaderIcon>
<igx-icon>expand_more</igx-icon>
</ng-template>
@ViewChild("'template'", {read: TemplateRef })
public template: TemplateRef<any>;
this.grid.sortDescendingHeaderIconTemplate = this.template;
列がソートされていない場合にヘッダーの並べ替えインジケーターを描画するときに使用する必要があるカスタム テンプレートを取得します (存在する場合)。
列がソートされていない場合に、ヘッダーのソート インジケーターを描画するときに使用するカスタム テンプレートを設定します。
<ng-template #template igxSortHeaderIcon>
<igx-icon>unfold_more</igx-icon>
</ng-template>
@ViewChild("'template'", {read: TemplateRef })
public template: TemplateRef<any>;
this.grid.sortHeaderIconTemplate = this.template;
グリッドのソート ストラテジを取得または設定します。
<igx-grid #grid [data]="localData" [sortStrategy]="sortStrategy"></igx-grid>
ソートの状態を取得または設定します。
双方向データ バインディングをサポートします。
<igx-grid #grid [data]="Data" [autoGenerate]="true" [(sortingExpressions)]="model.sortingExpressions"></igx-grid>
ソート オプション (単一または複数) を取得または設定します。
いずれかの mode
プロパティを持つ ISortingOptions
オブジェクトを受け入れます。
const _sortingOptions: ISortingOptions = {
mode: 'single'
}
```html
<igx-grid [sortingOptions]="sortingOptions"><igx-grid>
コンポーネントの超コンパクトなテーマを有効にします。
displayDensity オプションが設定されている場合、これをオーバーライドします。
<igx-pivot-grid [superCompactMode]="true"></igx-pivot-grid>
グリッド仮想化の状態を返します。
開始インデックスおよび描画されるレコード数を含みます。
const gridVirtState = this.grid1.virtualizationState;
表示される IgxColumnComponent
の配列を返します。
const visibleColumns = this.grid.visibleColumns.
グリッドの幅を取得または設定します。
let gridWidth = this.grid.width;
行ディメンション セルを自動サイズ設定します。
ビューのディメンション セルに基づくサイズのみ。
this.grid.autoSizeRowDimension(dimension);
行ディメンション セルを自動サイズ設定します。
すべての行を選択解除します。
フィルタリング機能が有効にされる場合、selectAllRows() および deselectAllRows() はフィルターされた行のみを選択/選択解除します。 onlyFilterData のパラメーターを false に設定すると、削除された行を除き Grid 内のすべての行が選択されます。
this.grid.deselectAllRows();
すべての行を選択解除します。
フィールドによって特定の列の選択を解除します。
this.grid.deselectColumns(['ID','Name']);
フィールドによって特定の列の選択を解除します。
単一の IgxColumnComponent
をフィルターします。
public filter(term) {
this.grid.filter("ProductName", term, IgxStringFilteringOperand.instance().condition("contains"));
}
単一の IgxColumnComponent
をフィルターします。
単一の IgxColumnComponent
をフィルターします。
単一の IgxColumnComponent
をフィルターします。
単一の IgxColumnComponent
をフィルターします。
単一の IPivotDimension
をフィルターします。
public filter() {
const set = new Set();
set.add('Value 1');
set.add('Value 2');
this.grid1.filterDimension(this.pivotConfigHierarchy.rows[0], set, IgxStringFilteringOperand.instance().condition('in'));
}
同じ条件で IgxGridComponent
のすべての IgxColumnComponent
をフィルターします。
grid.filterGlobal('some', IgxStringFilteringOperand.instance().condition('contains'));
同じ条件で IgxGridComponent
のすべての IgxColumnComponent
をフィルターします。
同じ条件で IgxGridComponent
のすべての IgxColumnComponent
をフィルターします。
同じ条件で IgxGridComponent
のすべての IgxColumnComponent
をフィルターします。
フィールド名によって IgxColumnComponent
を返します。
const myCol = this.grid1.getColumnByName("ID");
フィールド名によって IgxColumnComponent
を返します。
IgxGridHeaderGroupComponent
に設定される width
を取得します。
現在の列選択の配列を [{ column.field: cell.value }, ...]
の形式で返します。
formatters
が有効な場合、セル値はそれぞれの列フォーマッタ (もしあれば)
によってフォーマットされます。headers
が有効な場合、列フィールドの代わりに列ヘッダーがある場合はそれを使います。
現在のセル選択の配列を [{ column.field: cell.value }, ...]
の形式で返します。
formatters
が有効な場合、セル値はそれぞれの列フォーマッタ (もしあれば)
によってフォーマットされます。headers
が有効な場合、列フィールドの代わりに列ヘッダーがある場合はそれを使います。
グリッドで現在選択されている範囲を取得します。
指定したインデックスまたはコレクションの最後にタイプによってターゲット コレクションにディメンションを挿入します。
this.grid.insertDimensionAt(dimension, PivotDimensionType.Row, 1);
指定したインデックスまたはコレクションの最後にタイプによってターゲット コレクションにディメンションを挿入します。
指定したインデックスまたはコレクションの最後にタイプによってターゲット コレクションにディメンションを挿入します。
指定したインデックスまたはコレクションの最後にタイプによってターゲット コレクションにディメンションを挿入します。
指定したインデックスまたは最後に値を挿入します。
this.grid.insertValueAt(value, 1);
指定したインデックスまたは最後に値を挿入します。
指定したインデックスまたは最後に値を挿入します。
IgxGridComponent
の変更検出をトリガーします。
markForCheck を呼び出すと、グリッドのパイプも明示的にトリガーされ、すべての更新が処理されます。
不要なときに使用したり、誤用したりすると、パフォーマンスが低下する可能性があります。
// 注意事項
// ループ内から markForCheck を呼び出さないでください。
// プリミティブが変更されたときに markForCheck を呼び出さないでください。
grid.data.forEach(rec => {
rec = newValue;
grid.markForCheck();
});
// 注意事項
// ネストされたプロパティを更新した後に markForCheck を呼び出します。
grid.data.forEach(rec => {
rec.nestedProp1.nestedProp2 = newValue;
});
grid.markForCheck();
grid.markForCheck();
指定したインデックスまたはコレクションの最後にあるタイプによって、現在のコレクションから指定したターゲット コレクションにディメンションを移動します。
this.grid.moveDimension(dimension, PivotDimensionType.Row, 1);
指定したインデックスまたはコレクションの最後にあるタイプによって、現在のコレクションから指定したターゲット コレクションにディメンションを移動します。
指定したインデックスまたはコレクションの最後にあるタイプによって、現在のコレクションから指定したターゲット コレクションにディメンションを移動します。
指定したインデックスまたはコレクションの最後にあるタイプによって、現在のコレクションから指定したターゲット コレクションにディメンションを移動します。
現在指定されたインデックス位置または末尾から値を移動します。
this.grid.moveValue(value, 1);
現在指定されたインデックス位置または末尾から値を移動します。
現在指定されたインデックス位置または末尾から値を移動します。
rowindex
と visibleColumnIndex
に基づいてグリッド内の位置に移動します。
{ targetType: GridKeydownTargetType, target: Object } を受け入れるコールバック関数を通してターゲット要素上で カスタム ロジックを実行することもできます。
this.grid.navigateTo(10, 3, (args) => { args.target.nativeElement.focus(); });
現在のコレクションからディメンションを削除します。
これは、ディメンションを有効/無効にする toggleDimension とは異なります。 指定したディメンションをコレクションから完全に削除します。
this.grid.removeDimension(dimension);
現在のコレクションからディメンションを削除します。
値をコレクションから削除します。
これは、値を有効または無効にする toggleValue とは異なります。 これにより、指定した値がコレクションから完全に削除されます。
this.grid.removeValue(dimension);
値をコレクションから削除します。
すべての行を選択します。
フィルタリング機能が有効にされる場合、selectAllRows() および deselectAllRows() はフィルターされた行のみを選択/選択解除します。 onlyFilterData のパラメーターを false に設定すると、削除された行を除き Grid 内のすべての行が選択されます。
this.grid.selectAllRows();
this.grid.selectAllRows(false);
すべての行を選択します。
指定した列を選択します。
this.grid.selectColumns(['ID','Name'], true);
指定した列を選択します。
指定した列を選択します。
グリッドの特定の行と列の間のセル範囲を選択します。
現在選択されている列を取得します。
選択されている列の配列を返します。
const selectedColumns = this.grid.selectedColumns();
単一の IgxColumnComponent
をソートします。
IgxGridComponent
の IgxColumnComponent
を提供したソート式の配列に基づいてソートします。
this.grid.sort({ fieldName: name, dir: SortingDirection.Asc, ignoreCase: false });
ディメンションとその子を指定された方向にソートします。
this.grid.sortDimension(dimension, SortingDirection.Asc);
ディメンションの有効状態をオンまたはオフにトグルします。
ディメンションは現在のコレクションに残ります。これは有効状態を変更するだけです。
this.grid.toggleDimension(dimension);
ディメンションの有効状態をオンまたはオフにトグルします。
値の有効状態をオンまたはオフにトグルします。
値は現在のコレクションに残ります。これは有効状態を変更するだけです。
this.grid.toggleValue(value);
値の有効状態をオンまたはオフにトグルします。
Pivot Grid は、ピボット テーブル ビューでデータを表示および操作する方法を提供します。
Igx Module
IgxPivotGridModule
Igx Group
グリッド & リスト
Igx Keywords
pivot, grid, table
Igx Theme
igx-grid-theme
Remarks
Ignite UI Pivot Grid は、シンプルなフラット データをグループ化してピボット テーブルに集計するために使用されます。 データがバインドされ、ディメンションと値が構成されると、ソートとフィルタリングによって操作できます。
Example