projects/i-components/src/lib/components/data-grid-columns/data-grid-columns.component.ts
Angular component for the Columns Collection declaration in the DataGrid
selector | wm-data-grid-columns |
styleUrls | ./data-grid-columns.component.scss |
templateUrl | ./data-grid-columns.component.html |
Properties |
allColumns |
Type : QueryList<BaseDataGridColumnsComponent>
|
Decorators :
@ContentChildren(BaseDataGridColumnsComponent, {descendants: false})
|
Gets all column definitions |
import { Component, ContentChildren, QueryList } from '@angular/core';
import { BaseDataGridColumnsComponent } from './base-data-grid-columns/base-data-grid-columns.component';
/**
* Angular component for the Columns Collection declaration
* in the DataGrid
*
* @export
* @class DataGridColumnsComponent
*/
@Component({
selector: 'wm-data-grid-columns',
templateUrl: './data-grid-columns.component.html',
styleUrls: ['./data-grid-columns.component.scss'],
})
export class DataGridColumnsComponent {
/**
* Gets all column definitions
*
* @type {QueryList<BaseDataGridColumnsComponent>}
* @memberof DataGridColumnsComponent
*/
@ContentChildren(BaseDataGridColumnsComponent, { descendants: false })
allColumns: QueryList<BaseDataGridColumnsComponent>;
}
<ng-container></ng-container>
./data-grid-columns.component.scss